File: rules

package info (click to toggle)
libterm-size-perl-perl 0.031-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 148 kB
  • sloc: perl: 152; makefile: 12
file content (18 lines) | stat: -rwxr-xr-x 639 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

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

include /usr/share/dpkg/architecture.mk
PERLVER := $(shell perl -MConfig -e 'print $$Config{version}')
ARCHLIB := $(shell perl -I/usr/lib/$(DEB_HOST_MULTIARCH)/perl/cross-config-$(PERLVER) -MConfig -e 'print $$Config{vendorarch}')

%:
	dh $@

override_dh_auto_install:
	dh_auto_install
	# contains arch-specific constants
	mkdir -p $(TMP)/$(ARCHLIB)/Term/Size/Perl
	mv -v $(TMP)/usr/share/perl5/Term/Size/Perl/Params.pm $(TMP)/$(ARCHLIB)/Term/Size/Perl
	rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/share/perl5/Term/Size/Perl