create script to build APT package for BTdeamon, Resources, and BTstack client library

This commit is contained in:
matthias.ringwald 2009-09-28 21:57:48 +00:00
parent 24e5ff80f7
commit f4ed3ab876
3 changed files with 44 additions and 2 deletions

View File

@ -1,10 +1,9 @@
/* new todo file for BTstack */
Last milestone reached: added SVN revision to package.sh tool for SpringBoardAccess
Last milestone reached: create script to build APT package for BTdeamon, Resources, and BTstack client library
NEXT:
- create script to build APT package for BTdeamon, Resources, and BTstack client library
- decide on error reporting from BTdaemon
- command_status_event with custom errors
- hci open failed

34
package.sh Executable file
View File

@ -0,0 +1,34 @@
#!/bin/sh
PACKAGE=BTstack
VERSION=0.1
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 resources/control $PACKAGE/DEBIAN
echo "Version: $VERSION-$REVISION" >> $PACKAGE/DEBIAN/control
mkdir -p $PACKAGE/usr/local/bin
cp src/BTdaemon $PACKAGE/usr/local/bin
mkdir -p $PACKAGE/usr/local/lib
cp src/libBTstack.dylib $PACKAGE/usr/local/lib
mkdir -p $PACKAGE/System/Library/CoreServices/SpringBoard.app/
cp resources/*.png $PACKAGE/System/Library/CoreServices/
mkdir -p $PACKAGE/Library/LaunchDaemons/
cp resources/ch.ringwald.BTstack.plist $PACKAGE/Library/LaunchDaemons/
echo Packaging $PACKAGE
export COPYFILE_DISABLE
export COPY_EXTENDED_ATTRIBUTES_DISABLE
dpkg-deb -b $PACKAGE $ARCHIVE
dpkg-deb --info $ARCHIVE
dpkg-deb --contents $ARCHIVE

9
resources/control Normal file
View File

@ -0,0 +1,9 @@
Package: ch.ringwald.btstack
Name: BTstack
Description: Open User-Space Bluetooth Stack
Section: Networking
Architecture: iphoneos-arm
Depends: ch.ringwald.springboardaccess
Maintainer: Matthias Ringwald <iphone@ringwald.ch>
Author: Matthias Ringwald <iphone@ringwald.ch>
Section: Development