summaryrefslogtreecommitdiff
path: root/palemoon/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'palemoon/debian/rules')
-rwxr-xr-xpalemoon/debian/rules30
1 files changed, 30 insertions, 0 deletions
diff --git a/palemoon/debian/rules b/palemoon/debian/rules
new file mode 100755
index 0000000..527fae9
--- /dev/null
+++ b/palemoon/debian/rules
@@ -0,0 +1,30 @@
+#!/usr/bin/make -f
+
+export SHELL=/bin/bash
+
+%:
+ dh $@
+
+override_dh_auto_clean:
+ rm -f mozconfig
+ dh_auto_clean
+ find . -name '*.pyc' -delete
+
+override_dh_auto_configure:
+ cp debian/mozconfig mozconfig
+
+override_dh_auto_build:
+ make -f client.mk build
+
+override_dh_auto_install:
+ make -f client.mk DESTDIR=$$(pwd)/debian/palemoon prefix=/usr \
+ installdir=/usr/lib/palemoon \
+ sdkdir=/usr/lib/palemoon-devel install
+ rm -rf $$(pwd)/debian/palemoon/usr/share/idl
+ rm -rf $$(pwd)/debian/palemoon/usr/lib/palemoon-devel
+ rm -rf $$(pwd)/debian/palemoon/usr/include
+# remove vestigial duplicate file
+ rm -rf $$(pwd)/debian/palemoon/usr/lib/palemoon/palemoon-bin
+
+override_dh_shlibdeps:
+ dh_shlibdeps -l /usr/lib/palemoon
bgstack15