[Pkg-mozext-commits] [SCM] Packaging for https-everywhere branch, experimental, updated. debian/3.2-1
Jérémy Bobbio
lunar at debian.org
Sun Apr 28 13:23:19 UTC 2013
The following commit has been merged in the experimental branch:
commit 0adb44c55f337b283a0f4652575fc8c0cbdac8e4
Author: Jérémy Bobbio <lunar at debian.org>
Date: Sun Apr 28 10:18:18 2013 +0000
Adapt debian/rules to build from upstream Git repository
Given we now build from a snapshot of the upstream Git repository and not from
the XPI, we need to build the XPI ourselves. Then we can happily use
`install-xpi` to create the binary package.
We don't need the xul-ext dh buildsystem anymore as we do 2/3 of the steps
manually.
diff --git a/debian/rules b/debian/rules
index 4cd821a..e58d8fb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,10 +1,27 @@
#!/usr/bin/make -f
+UPSTREAM_VERSION = $(shell dpkg-parsechangelog | sed -n -e 's/^Version: \([^-]*\)-.*$$/\1/p')
+
%:
- dh $@ --with xul-ext --buildsystem=xul_ext --parallel
+ dh $@ --with xul-ext --parallel
+
+override_dh_auto_build:
+ ./makexpi.sh $(UPSTREAM_VERSION) --no-recurse
+
+override_dh_auto_install:
+ install-xpi pkg/https-everywhere-$(UPSTREAM_VERSION).xpi
+
+override_dh_auto_test:
+ @echo "No further tests are provided than what is during makexpi.sh."
+
+override_dh_auto_clean:
+ make clean
override_dh_builddeb:
dh_builddeb -- -z2 -Zxz
override_dh_install:
rm -f debian/xul-ext-https-everywhere/usr/share/xul-ext/https-everywhere/LICENSE.txt
+
+override_dh_installchangelogs:
+ dh_installchangelogs src/Changelog
--
Packaging for https-everywhere
More information about the Pkg-mozext-commits
mailing list