summaryrefslogtreecommitdiffstats
path: root/builddeb
diff options
context:
space:
mode:
Diffstat (limited to 'builddeb')
-rwxr-xr-xbuilddeb14
1 files changed, 14 insertions, 0 deletions
diff --git a/builddeb b/builddeb
new file mode 100755
index 0000000..1c56e6c
--- /dev/null
+++ b/builddeb
@@ -0,0 +1,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 \ No newline at end of file