diff --git a/SpringBoardAccess/control b/SpringBoardAccess/control index e771a5dd1..38065e966 100644 --- a/SpringBoardAccess/control +++ b/SpringBoardAccess/control @@ -1,6 +1,5 @@ Package: ch.ringwald.springboardaccess Name: SpringBoardAccess -Version: 0.1 Description: Controls status bar icons from daemons Section: Networking Architecture: iphoneos-arm diff --git a/SpringBoardAccess/package.sh b/SpringBoardAccess/package.sh index a4b62e4cf..4897440c2 100755 --- a/SpringBoardAccess/package.sh +++ b/SpringBoardAccess/package.sh @@ -1,19 +1,26 @@ #!/bin/sh -echo Creating SpringBoardAccess package -rm -rf SpringBoardAccess +PACKAGE=SpringBoardAccess -mkdir -p SpringBoardAccess/DEBIAN -cp control SpringBoardAccess/DEBIAN +VERSION=0.1 +REVISION=`svn info | grep Revision | cut -d " " -f 2` +ARCHIVE=$PACKAGE-$VERSION-$REVISION.deb -mkdir -p SpringBoardAccess/usr/local/bin -cp SpringBoardAccess-test SpringBoardAccess/usr/local/bin +echo Creating $PACKAGE package version $VERSION revision $REVISION +rm -rf $PACKAGE -mkdir -p SpringBoardAccess/Library/MobileSubstrate/DynamicLibraries -cp SpringBoardAccess.dylib SpringBoardAccess.plist SpringBoardAccess/Library/MobileSubstrate/DynamicLibraries +mkdir -p $PACKAGE/DEBIAN +cp control $PACKAGE/DEBIAN +echo "Version: $VERSION-$REVISION" >> $PACKAGE/DEBIAN/control -echo Packaging SpringBoardAccess +mkdir -p $PACKAGE/usr/local/bin +cp SpringBoardAccess-test $PACKAGE/usr/local/bin + +mkdir -p $PACKAGE/Library/MobileSubstrate/DynamicLibraries +cp SpringBoardAccess.dylib SpringBoardAccess.plist $PACKAGE/Library/MobileSubstrate/DynamicLibraries + +echo Packaging $PACKAGE export COPYFILE_DISABLE export COPY_EXTENDED_ATTRIBUTES_DISABLE -dpkg-deb -b SpringBoardAccess -ls -la SpringBoardAccess.deb +dpkg-deb -b $PACKAGE $ARCHIVE +dpkg-deb --info $ARCHIVE