File: rules

package info (click to toggle)
zziplib 0.13.62-3.2~deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,432 kB
  • sloc: sh: 12,147; ansic: 7,587; perl: 2,826; python: 2,190; makefile: 945; sed: 44
file content (24 lines) | stat: -rwxr-xr-x 767 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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
	dh $@ --with autoreconf

override_dh_clean:
	dh_clean
	rm -rf Makefile Linux_*.d/ testdata.d/ docs/zzipdoc/*.pyc

override_dh_install:
	# need to refresh patch and do it in debian/tmp/usr/share/man/man3
	#cd $(CURDIR)/debian/libzzip-dev/usr/share/man/ \
	#	&& tar xf $(CURDIR)/docs/zziplib-manpages.tar
	#cd $(CURDIR)/debian/libzzip-dev/usr/share/man/man3/ \
	#	&& patch -p1 < $(CURDIR)/debian/man3.patch
	dh_install
	# empty dependency_libs in .la files
	sed -i "/dependency_libs/ s/'.*'/''/" `find debian/ -name '*.la'`
	# remove pkg-config-bad-directive
	sed -i "s/\-D_FORTIFY_SOURCE=2//" `find debian/ -name '*.pc'`

get-orig-source:
	uscan --download-current-version --rename