summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:18:40 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:18:40 +0000
commit35ddc96e34bcd836ebee6e29c4300de16c34abc7 (patch)
tree3cc82d48be8ad30ddfa76d0ea796a1defe389d64 /debian/rules
parentAdding upstream version 1.4.5. (diff)
downloadirssi-35ddc96e34bcd836ebee6e29c4300de16c34abc7.tar.xz
irssi-35ddc96e34bcd836ebee6e29c4300de16c34abc7.zip
Adding debian version 1.4.5-1.debian/1.4.5-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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)