File: rules

package info (click to toggle)
libhttp-oai-perl 4.13-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 436 kB
  • sloc: perl: 2,599; xml: 224; makefile: 15
file content (25 lines) | stat: -rwxr-xr-x 810 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

%:
	dh $@

override_dh_auto_test:
	# \$ENV{PWD} is not guaranteed to be set on buildds?!
	# cf. https://buildd.debian.org/status/fetch.php?pkg=libhttp-oai-perl&arch=all&ver=4.04-1&stamp=1500072575&raw=0
	# and is needed by t/00static.t
	PWD=$(CURDIR) dh_auto_test

override_dh_auto_install:
	dh_auto_install
	# rename scripts and manpages
	mv $(TMP)/usr/bin/oai_browser.pl $(TMP)/usr/bin/oai_browser
	mv $(TMP)/usr/bin/oai_pmh.pl $(TMP)/usr/bin/oai_pmh
	mv $(TMP)/usr/share/man/man1/oai_browser.pl.1p \
	   $(TMP)/usr/share/man/man1/oai_browser.1p
	mv $(TMP)/usr/share/man/man1/oai_pmh.pl.1p \
	   $(TMP)/usr/share/man/man1/oai_pmh.1p
	# remove empty manpages
	find $(TMP)/usr/share/man/man3 -type f -size 0 -delete