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 36 37 38 39 40 41 42 43 44 45
|
#!/usr/bin/make -f
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- \
--disable-silent-rules \
--with-shell=/bin/sh \
--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
--mandir=/usr/share/man \
--enable-static
override_dh_auto_build:
dh_auto_build; \
cd lib; \
ln -s . cpd-interface-headers; \
cd ../demo; \
make CPD_FRONT_FLAGS='-D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro -I../lib -L../lib/.libs -lcpdb-libs-frontend -lcpdb-libs-common' print_frontend; \
cd ../lib;
rm -f cpd-interface-headers; \
cd ..
override_dh_installdocs:
dh_installdocs -A README.md
override_dh_makeshlibs:
dh_makeshlibs -- -c4
override_dh_auto_clean:
[ ! -r Makefile ] || make distclean
rm -f lib/cpd-interface-headers
override_dh_install:
dh_install
get-orig-source:
set -e;\
quilt pop -af || true ;\
rm -Rf .pc ;\
gbp import-orig --pristine-tar --uscan --no-merge --upstream-branch=upstream/latest;\
utag=`git describe --exact-match heads/upstream/latest | sed -e 's#^upstream/##'` ;\
ucommit=`git rev-parse --verify upstream/latest`;\
git dpm record-new-upstream --rebase-patched --allow-changes-in-debian-branch ../cpdb-libs_$$utag.orig.tar.gz $$ucommit ;\
git dpm update-patches -m "Merge upstream-repacked $$utag version and refresh git-dpm patches"
|