File: rules

package info (click to toggle)
irssi 1.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 9,728 kB
  • sloc: ansic: 61,446; sh: 4,896; perl: 2,699; makefile: 1,235
file content (33 lines) | stat: -rwxr-xr-x 786 bytes parent folder | download | duplicates (2)
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)