| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
PACKAGE = $(shell dh_listpackages) |
| 4 |
TMP = $(CURDIR)/debian/$(PACKAGE) |
| 5 |
|
| 6 |
include /usr/share/dpkg/architecture.mk |
| 7 |
PERLVER := $(shell perl -MConfig -e 'print $$Config{version}') |
| 8 |
ARCHLIB := $(shell perl -I/usr/lib/$(DEB_HOST_MULTIARCH)/perl/cross-config-$(PERLVER) -MConfig -e 'print $$Config{vendorarch}') |
| 9 |
|
| 10 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 11 |
|
| 12 |
%: |
| 13 |
dh $@ |
| 14 |
|
| 15 |
execute_before_dh_auto_clean: |
| 16 |
# Cleanup autogenerated Makefiles targeting the wrong platform. |
| 17 |
find -name Makefile -delete |
| 18 |
|
| 19 |
override_dh_auto_test: |
| 20 |
xvfb-run -a dh_auto_test |
| 21 |
|
| 22 |
override_dh_auto_install: |
| 23 |
dh_auto_install |
| 24 |
$(RM) -rv $(TMP)/$(ARCHLIB)/auto/Tk/pTk # conflicts with perl-tk |
| 25 |
$(RM) -rv $(TMP)/$(ARCHLIB)/Tk/pTk # conflicts with perl-tk |
| 26 |
|
| 27 |
override_dh_installexamples: |
| 28 |
dh_installexamples |
| 29 |
sed -i '1i #!/usr/bin/perl\n' $(TMP)/usr/share/doc/$(PACKAGE)/examples/* |
| 30 |
chmod +x $(TMP)/usr/share/doc/$(PACKAGE)/examples/* |
| 31 |
|
| 32 |
override_dh_installchangelogs: |
| 33 |
dh_installchangelogs Changes |