File: rules

package info (click to toggle)
libencode-arabic-perl 14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 604 kB
  • ctags: 119
  • sloc: perl: 4,453; makefile: 11
file content (19 lines) | stat: -rwxr-xr-x 522 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
#!/usr/bin/make -f

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

%:
	dh $@

override_dh_auto_install:
	dh_auto_install
	# Remove the provided {encode,decode}.pl perl scripts and their manpages,
	# since the they will be installed as examples instead:
	$(RM) -rv $(TMP)/usr/bin/
	$(RM) -rv $(TMP)/usr/share/man/man1/

override_dh_installexamples:
	dh_installexamples
	# Fix interpreter shebang lines:
	sed -i '1s|^#! perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/libencode-arabic-perl/examples/*