debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 | |
| 5 | PACKAGE = $(shell dh_listpackages) |
| 6 | TMP = $(CURDIR)/debian/$(PACKAGE) |
| 7 | |
| 8 | PROJ_ABI=$(shell dpkg --search libproj.so.|grep /usr/lib|cut -d: -f1|sort|uniq|tail -1) |
| 9 | |
| 10 | %: |
| 11 | dh $@ |
| 12 | |
| 13 | override_dh_gencontrol: |
| 14 | dh_gencontrol -- -Vproj:Depends="$(PROJ_ABI)" |
| 15 | |
| 16 | override_dh_installexamples: |
| 17 | dh_installexamples |
| 18 | sed -i '1s|^#! /usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/* |