diff --git a/TODO.txt b/TODO.txt index 7cf4dc13a..fc68db8dd 100644 --- a/TODO.txt +++ b/TODO.txt @@ -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 diff --git a/package.sh b/package.sh new file mode 100755 index 000000000..2999dbcce --- /dev/null +++ b/package.sh @@ -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 diff --git a/resources/control b/resources/control new file mode 100644 index 000000000..bf8416f14 --- /dev/null +++ b/resources/control @@ -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 +Author: Matthias Ringwald +Section: Development