File: rules

package info (click to toggle)
php-services-weather 1.4.7-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, stretch
  • size: 592 kB
  • ctags: 1,470
  • sloc: php: 3,910; xml: 178; makefile: 18
file content (23 lines) | stat: -rwxr-xr-x 744 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
#!/usr/bin/make -f

USRDIR   := $(CURDIR)/debian/php-services-weather/usr
UPSTREAM := $(shell dpkg-parsechangelog -S Version | sed 's/-[^-]*//')

override_dh_installman:
	mkdir --parent $(CURDIR)/debian/tmp
	help2man \
		--help-option=-h \
		--version-string=$(UPSTREAM) \
		--no-info \
		--include=$(CURDIR)/debian/buildMetarDB.1.in \
		'php $(USRDIR)/share/php/data/Services_Weather/buildMetarDB.php' \
		| sed -r 's/\\fB(\\-)+\\fR"\\-\\-\\-\\-\\-\\-\\-\\-\\-\\-/of the DB to be used/' \
		> $(CURDIR)/debian/tmp/buildMetarDB.1
	dh_installman

%:
	dh $@ --buildsystem=phppear --with phppear

override_dh_fixperms:
	dh_fixperms -O--buildsystem=phppear
	chmod +x debian/php-services-weather/usr/share/php/data/Services_Weather/buildMetarDB.php