summaryrefslogtreecommitdiff
path: root/debpkg/rules
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-11-12 17:25:25 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-11-12 17:25:25 +0100
commit14304e0827cd7de7fc55b1ba587ccdd380525b94 (patch)
treef70c126b91e68b66d7005cfea53b88a82aa0c7fa /debpkg/rules
parentd279e229635f19852dc829552aa7c7d72d7a4dd2 (diff)
New upstream release
Diffstat (limited to 'debpkg/rules')
-rwxr-xr-xdebpkg/rules23
1 files changed, 23 insertions, 0 deletions
diff --git a/debpkg/rules b/debpkg/rules
new file mode 100755
index 0000000..49191d6
--- /dev/null
+++ b/debpkg/rules
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+%:
+ dh $@ --with autoreconf
+
+PKD = $(abspath $(dir $(MAKEFILE_LIST)))
+PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
+VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
+
+.PHONY: get-orig-source
+## http://wiki.debian.org/onlyjob/get-orig-source
+get-orig-source: $(info I: $(PKG)_$(VER))
+ @echo "# Downloading..."
+ uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(PKD)
+
+override_dh_auto_configure:
+ dh_auto_configure -- --enable-gpl
+
+# work around bug #670796
+override_dh_autoreconf:
+ dh_autoreconf --exclude=mkinstalldirs
+
+override_dh_installchangelogs:
+ dh_installchangelogs ChangeLog