mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-06 07:00:59 +00:00
create script to build APT package for BTdeamon, Resources, and BTstack client library
This commit is contained in:
parent
24e5ff80f7
commit
f4ed3ab876
3
TODO.txt
3
TODO.txt
@ -1,10 +1,9 @@
|
|||||||
/* new todo file for BTstack */
|
/* 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:
|
NEXT:
|
||||||
- create script to build APT package for BTdeamon, Resources, and BTstack client library
|
|
||||||
- decide on error reporting from BTdaemon
|
- decide on error reporting from BTdaemon
|
||||||
- command_status_event with custom errors
|
- command_status_event with custom errors
|
||||||
- hci open failed
|
- hci open failed
|
||||||
|
34
package.sh
Executable file
34
package.sh
Executable 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
9
resources/control
Normal 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
|
Loading…
Reference in New Issue
Block a user