summaryrefslogtreecommitdiffstats
path: root/builddeb
blob: 1c56e6c9e5b2d0303a3b30a49d807bf82b350aee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

vers=`cat B/DEBIAN/control | grep Version | sed s/'Version: '//`

make install DESTDIR=`pwd`/B &&
rm -f B/usr/lib/ksquirrel-libs/*.la &&
rm -f B/usr/lib/*.la                &&
rm -f B/usr/lib/ksquirrel-libs/*.so &&
rm -f B/usr/lib/ksquirrel-libs/*.so.0 &&
strip B/usr/lib/ksquirrel-libs/* &&
strip B/usr/lib/*
strip B/usr/bin/*
dpkg-deb -b B ksquirrel-libs_${vers}_i386.deb &&
rm -rf B/usr