summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules33
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1d54319
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,33 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/pkg-info.mk
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+# for dh_auto_test
+TESTDIR=$(CURDIR)/debian/autotest
+
+CONFIGURE_SWITCHES = -Dwith-proxy=yes -Dwith-otr=yes -Denable-true-color=yes -Dwith-perl=yes -Dwith-perl-lib=vendor -Dstatic-dependency=no -DPACKAGE_VERSION=$(DEB_VERSION_UPSTREAM)
+
+%:
+ dh $@ --buildsystem meson
+
+override_dh_auto_configure:
+ dh_auto_configure -- $(CONFIGURE_SWITCHES)
+
+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)