File: rules

package info (click to toggle)
libnet-amazon-s3-perl 0.991-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,608 kB
  • sloc: perl: 9,906; makefile: 20
file content (26 lines) | stat: -rwxr-xr-x 1,088 bytes parent folder | download
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
26
#!/usr/bin/make -f

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

%:
	dh $@

override_dh_auto_install:
	dh_auto_install
	sed -i '1s|^#!.*perl|#!/usr/bin/perl|' $(TMP)/usr/bin/s3cl
	# almost empty / boilerplate
	$(RM) -v $(TMP)/usr/share/man/man3/Net::Amazon::S3::Role::Bucket.3pm \
		$(TMP)/usr/share/man/man3/Net::Amazon::S3::Signature::V2.3pm \
		$(TMP)/usr/share/man/man3/Net::Amazon::S3::Signature::V4.3pm \
		$(TMP)/usr/share/man/man3/Net::Amazon::S3::Operation::Object::Head.pm \
		$(TMP)/usr/share/man/man3/Net::Amazon::S3::Operation::Object::Head::Request.pm \
		$(TMP)/usr/share/man/man3/Net::Amazon::S3::Operation::Object::Head::Response.pm \
		$(TMP)/usr/share/man/man3/Net::Amazon::S3::ACL::Canned.3pm \
		$(TMP)/usr/share/man/man3/Net::Amazon::S3::Constants.3pm \
		$(TMP)/usr/share/man/man3/Net::Amazon::S3::Constraint::ACL::Canned.3pm
	$(RM) -v -r $(TMP)/usr/share/perl5/Shared $(TMP)/usr/share/man/man3/Shared*

override_dh_installexamples:
	dh_installexamples
	sed -i '1s|^#!.*perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*