File: rules

package info (click to toggle)
php-db 1.7.14-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 984 kB
  • sloc: php: 6,933; pascal: 1,001; xml: 213; sh: 31; makefile: 13
file content (19 lines) | stat: -rwxr-xr-x 597 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

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

DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-)
DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')

override_dh_link:
	dh_link -O--buildsystem=phppear
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	chmod +x ./debian/tests_run
	./debian/tests_run
endif


get-orig-source:
	wget http://download.pear.php.net/package/DB-${DEB_UPSTREAM_VERSION}.tgz -O php-db_${DEB_UPSTREAM_VERSION}.orig.tar.gz