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
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
# for dh_auto_test
TESTDIR=$(CURDIR)/debian/autotest
CONFIGURE_SWITCHES = --enable-ipv6 --with-bot --with-proxy --with-otr=yes --enable-true-color --with-perl-lib=vendor --disable-static
include /usr/share/dpkg/pkg-info.mk
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- $(CONFIGURE_SWITCHES) PACKAGE_VERSION=$(DEB_VERSION)
override_dh_install:
find debian/tmp -name '*.la' -delete
dh_install
find debian/irssi -name '*otr*' -delete
ABI = $(shell grep IRSSI_ABI_VERSION src/common.h | cut -d' ' -f3 )
override_dh_gencontrol:
dh_gencontrol -- -Virssi:ABI="irssi-abi-$(ABI)"
override_dh_auto_test:
mkdir -p $(TESTDIR)
HOME=$(TESTDIR) dh_auto_test
override_dh_clean:
dh_clean
rm -rf $(TESTDIR)
|