summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorRuben Undheim <ruben.undheim@gmail.com>2016-02-09 20:12:49 +0100
committerRuben Undheim <ruben.undheim@gmail.com>2016-02-09 20:12:49 +0100
commita207016d989d1fa3854ad0257fd733826dc8fced (patch)
tree10b66289f003230ec9b7ceeae799618d27a53166 /debian/rules
parent8eb24cbfcface9379d7f3549c338708ab8232822 (diff)
parent57f43f979ef705dab0f2218e5642ca3700ef4f22 (diff)
mrtdreader (0.1.6-1) unstable; urgency=medium
* New upstream release - Fixes some issues with UK and US passports at least * debian/control: - Changed Vcs-Git to https url - Removed -dbg package since -dbgsym is automatically built * debian/rules: - Remove override of dh_strip target [dgit import unpatched mrtdreader 0.1.6-1]
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..a3681ec
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+
+#export DH_VERBOSE=1
+
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+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+.*)};')
+
+
+%:
+ dh $@
+
+get-orig-source: $(info I: $(PKG)_$(VER))
+ @echo "# Downloading..."
+ uscan --noconf --verbose --rename --destdir=$(CURDIR) --force-download --download-version $(VER) $(PKD)
+