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 27 28 29 30 31 32 33 34 35
|
#!/usr/bin/make -f
# -*- makefile -*-
export LDFLAGS=-Wl,--as-needed -Wl,-z,defs
MAKEFILE = $(firstword $(MAKEFILE_LIST))
DEBIAN_DIR = $(dir $(MAKEFILE))
SOURCE_DIR = $(DEBIAN_DIR)/..
VERSION = $(shell dpkg-parsechangelog -l$(DEBIAN_DIR)/changelog | \
sed -n 's/-.*$$//; s/^Version: //p')
PACKAGE = $(shell sed -n 's/^Source: //p' $(DEBIAN_DIR)/control)
get-orig-source:
uscan \
--force-download \
--download \
--rename \
--package=$(PACKAGE) \
--upstream-version=$(VERSION) \
--watchfie=$(DEBIAN_DIR)/watch \
--destdir=.
# disable tests; it requires a running D-Bus session
override_dh_auto_test:
override_dh_installchangelogs:
dh_installchangelogs ChangeLog
override_dh_auto_install:
dh_auto_install
clean:
dh $@
%:
dh $@
|