summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-05-03 19:19:38 +0200
committerGravatar waker <wakeroid@gmail.com>2012-05-03 19:20:09 +0200
commitef1c07cc3bbd19b9f75f3a7d962c619a3952ce8a (patch)
tree06609cdfe23af814713f12ee39bea72829686c41 /tools
parentda1d59670bd56b655b1c62d29a8a0401d9557168 (diff)
fixed debian packager installed size calculation, added stripping
Diffstat (limited to 'tools')
-rwxr-xr-xtools/packages/debian.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/packages/debian.sh b/tools/packages/debian.sh
index 985dca28..90d8acdd 100755
--- a/tools/packages/debian.sh
+++ b/tools/packages/debian.sh
@@ -27,8 +27,12 @@ cp -r $INDIR/* $TEMPDIR/
# rm unneeded files
rm $TEMPDIR/opt/deadbeef/lib/deadbeef/*.la
for i in $TEMPDIR/opt/deadbeef/lib/deadbeef/*.so.0.0.0; do
- mv $i $TEMPDIR/opt/deadbeef/lib/deadbeef/`basename $i .0.0.0`
+ n=$TEMPDIR/opt/deadbeef/lib/deadbeef/`basename $i .0.0.0`
+ mv $i $n
+ strip --strip-unneeded $n
done
+strip --strip-unneeded $TEMPDIR/opt/deadbeef/bin/deadbeef
+
rm $TEMPDIR/opt/deadbeef/lib/deadbeef/*.so.*
rm $TEMPDIR/opt/deadbeef/lib/deadbeef/*.a
@@ -43,7 +47,7 @@ echo "2.0" >$TEMPDIR/debian-binary
# generate control
echo "Version: $VERSION-$BUILD" >$TEMPDIR/control
-echo "Installed-Size: `du -sb $TEMPDIR | awk '{print $1}'`" >>$TEMPDIR/control
+echo "Installed-Size: `du -sb $TEMPDIR | awk '{print int($1/1024)}'`" >>$TEMPDIR/control
echo "Architecture: $DEB_ARCH" >>$TEMPDIR/control
cat $PWD/tools/packages/deb_control >>$TEMPDIR/control