provide deb package

This commit is contained in:
matthias.ringwald 2009-10-25 17:06:42 +00:00
parent f55bb93403
commit 7befd7793b
3 changed files with 39 additions and 0 deletions

View File

@ -1,6 +1,7 @@
/* new todo file for BTstack */
NEXT:
- use message id for SpringBoardAccess
- make package script for WiiMote demo
- prepend all source files with 'new BSD' copyright header
- provide test version by setting up APT repository within BTstack SVN

View File

@ -0,0 +1,12 @@
Package: ch.ringwald.wiimoteopengldemo
Name: WiiMote OpenGL-ES Demo
Description: BTstack Demo
This demo shows how a virtual WiiMote can mirror
the behavior of a real one thanks to the open-source
BTstack Bluetooth Stack. A WiiMote is needed!
Section: Networking
Architecture: iphoneos-arm
Homepage: http://code.google.com/p/btstack/
Depends: ch.ringwald.btstack
Maintainer: Matthias Ringwald <iphone@ringwald.ch>
Author: Matthias Ringwald <iphone@ringwald.ch>

View File

@ -0,0 +1,26 @@
#!/bin/sh
PACKAGE=WiiMoteOpenGLDemo
VERSION=1.0
REVISION=`svn info | grep Revision | cut -d " " -f 2`
ARCHIVE=$PACKAGE-$VERSION-$REVISION.deb
echo Creating $PACKAGE package version $VERSION revision $REVISION
rm -rf $PACKAGE
mkdir -p $PACKAGE/DEBIAN
cp control $PACKAGE/DEBIAN
echo "Version: $VERSION-$REVISION" >> $PACKAGE/DEBIAN/control
mkdir -p $PACKAGE/Applications/
cp -r build/Debug-iphoneos/WiiMoteOpenGLDemo.app $PACKAGE/Applications
export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
ldid -S $PACKAGE/Applications/WiiMoteOpenGLDemo.app/WiiMoteOpenGLDemo
echo Packaging $PACKAGE
export COPYFILE_DISABLE
export COPY_EXTENDED_ATTRIBUTES_DISABLE
dpkg-deb -b $PACKAGE $ARCHIVE
dpkg-deb --info $ARCHIVE
dpkg-deb --contents $ARCHIVE