diff options
Diffstat (limited to '')
-rwxr-xr-x | debian/rules | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b5c5232 --- /dev/null +++ b/debian/rules @@ -0,0 +1,30 @@ +#!/usr/bin/make -f + +include /usr/share/dpkg/architecture.mk + +ifeq ($(origin CXX),default) +CXX := $(DEB_HOST_GNU_TYPE)-g++ +endif + +%: + dh ${@} + +override_dh_auto_configure: + LDFLAGS="${LDFLAGS} -static" dh_auto_configure -- --exec-prefix=/ CXX=$(CXX) + +override_dh_auto_install: + dh_auto_install -- DESTDIR=$(CURDIR)/debian/zutils + + # manpage + mkdir -p debian/zutils/usr/share/man/man1 + help2man --name 'search compressed and uncompressed files' debian/zutils/bin/zegrep > debian/zutils/usr/share/man/man1/zegrep.1 + help2man --name 'search compressed and uncompressed files' debian/zutils/bin/zfgrep > debian/zutils/usr/share/man/man1/zfgrep.1 + + # removing unused files + rm -f debian/zutils/usr/share/info/dir* + +override_dh_auto_test: + # disabled + +override_dh_gencontrol: + dh_gencontrol -- -Vbuilt-using="glibc (= $$(dpkg-query --show --showformat='$${source:Version}' libc-dev-bin))" |