summaryrefslogtreecommitdiff
path: root/fehqlibs-deb/debian/rules
blob: 5d5dd1dc1f74cca44adeb1c2f4ca26396a3f8fab (plain)
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
export DH_VERBOSE = 1

UPSTREAM_VERSION := $(shell dpkg-parsechangelog --show-field Version | cut -d- -f1)

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

%:
	dh $@ --buildsystem=none

override_dh_auto_clean:
	-tar -xf ../fehqlibs_$(UPSTREAM_VERSION).orig.tar.gz --strip-components=1
	rm -f debian/contrib/qlibs.pc
	$(MAKE) -C src clean
	sed -i '31,$$d' conf-build

override_dh_auto_configure:
	echo CFLAGS=\"-Iinclude $(CFLAGS)\" >>conf-build
	sed "s/@VERSION@/$(UPSTREAM_VERSION)/" debian/contrib/qlibs.pc.in >debian/contrib/qlibs.pc
	$(MAKE) -C src check

override_dh_auto_build:
	LDFLAGS= $(MAKE) -C src default