diff options
Diffstat (limited to '')
-rwxr-xr-x | debian/rules | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..e2fc491 --- /dev/null +++ b/debian/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +include /usr/share/dpkg/architecture.mk +include /usr/share/dpkg/buildtools.mk + +%: + dh ${@} + +override_dh_auto_configure: + dh_auto_configure -- CXX='$(CXX) -g' CXXFLAGS='-Wall -Wextra $(CXXFLAGS)' + +override_dh_auto_install: + dh_auto_install -- DESTDIR=$(CURDIR)/debian/lzip + +execute_after_dh_auto_install: + # update-alternatives + mv debian/lzip/usr/bin/lzip debian/lzip/usr/bin/lzip.lzip + mv debian/lzip/usr/share/info/lzip.info debian/lzip/usr/share/info/lzip.lzip.info + mv debian/lzip/usr/share/man/man1/lzip.1 debian/lzip/usr/share/man/man1/lzip.lzip.1 + + # removing unused files + rm -f debian/lzip/usr/share/info/dir* + +override_dh_auto_test: + # disabled: incomplete upstream testsuite |