blob: b24ffc47d497c313b2a1d0a916e270b2af93c280 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#!/bin/sh
if [ -f "/usr/bin/sudo" ]; then
SUDO="/usr/bin/sudo"
fi
PACKAGE=org.xbmc.xbmc-iconpack
VERSION=1.0
REVISION=0
ARCHIVE=${PACKAGE}_${VERSION}-${REVISION}_iphoneos-arm.deb
echo Creating $PACKAGE package version $VERSION revision $REVISION
${SUDO} rm -rf $PACKAGE
${SUDO} rm -rf $ARCHIVE
# create debian control file.
mkdir -p $PACKAGE/DEBIAN
echo "Package: $PACKAGE" > $PACKAGE/DEBIAN/control
echo "Priority: Extra" >> $PACKAGE/DEBIAN/control
echo "Name: XBMC-IconPack" >> $PACKAGE/DEBIAN/control
echo "Version: $VERSION-$REVISION" >> $PACKAGE/DEBIAN/control
echo "Architecture: iphoneos-arm" >> $PACKAGE/DEBIAN/control
echo "Description: XBMC Icon Pack" >> $PACKAGE/DEBIAN/control
echo "Homepage: http://xbmc.org/" >> $PACKAGE/DEBIAN/control
echo "Maintainer: TeamXBMC" >> $PACKAGE/DEBIAN/control
echo "Author: TeamXBMC" >> $PACKAGE/DEBIAN/control
echo "Section: Multimedia" >> $PACKAGE/DEBIAN/control
echo "Icon: file:///Applications/Cydia.app/Sources/mirrors.xbmc.org.png" >> $PACKAGE/DEBIAN/control
# prerm: called on remove and upgrade - get rid of existing bits.
echo "#!/bin/sh" > $PACKAGE/DEBIAN/prerm
echo "rm -f /Applications/Cydia.app/Sources/mirrors.xbmc.org.png">> $PACKAGE/DEBIAN/prerm
chmod +x $PACKAGE/DEBIAN/prerm
# postinst: nothing for now.
echo "#!/bin/sh" > $PACKAGE/DEBIAN/postinst
chmod +x $PACKAGE/DEBIAN/postinst
# create the patch directory and copy in patch
mkdir -p $PACKAGE/Applications/Cydia.app/Sources
cp mirrors.xbmc.org.png $PACKAGE/Applications/Cydia.app/Sources/
# set ownership to root:root
${SUDO} chown -R 0:0 $PACKAGE
echo Packaging $PACKAGE
# Tell tar, pax, etc. on Mac OS X 10.4+ not to archive
# extended attributes (e.g. resource forks) to ._* archive members.
# Also allows archiving and extracting actual ._* files.
export COPYFILE_DISABLE=true
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true
#
../../ios-depends/build/bin/dpkg-deb -b $PACKAGE $ARCHIVE
../../ios-depends/build/bin/dpkg-deb --info $ARCHIVE
../../ios-depends/build/bin/dpkg-deb --contents $ARCHIVE
# clean up by removing package dir
${SUDO} rm -rf $PACKAGE
|