X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=debian%2Frules;h=ab966e2f12f4ca788f934beb6d9cf160ab3f1e00;hb=03f9ed0d7defd9030b896b4761849432650d1959;hp=21ac1efde4ae04606e3de84a33783d3516994a06;hpb=e79a445f83989ef1f8ae564dd7c3be7e5d134d00;p=pkg%2Fabook.git diff --git a/debian/rules b/debian/rules index 21ac1ef..ab966e2 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,8 @@ #!/usr/bin/make -f # debian/rules for abook +# copyright 2003-2008 by Gerfried Fuchs +# Licenced the same way as abook itself + PKG = abook TMP = $(CURDIR)/debian/$(PKG) @@ -19,6 +22,7 @@ else endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s + STRIP = true endif @@ -50,6 +54,9 @@ install: build cd $(TMP) && $(INSTALL_DIR) usr/share/doc/$(PKG)/examples \ usr/share/doc/$(PKG)/contrib $(MAKE) prefix=$(TMP)/usr install INSTALL_PROGRAM="$(INSTALL_PROGRAM)" + test "$(STRIP)" != true || strip \ + --remove-section=.comment --remove-section=.note \ + $(TMP)/usr/bin/abook $(INSTALL_FILE) ChangeLog $(TMP)/usr/share/doc/$(PKG)/changelog $(INSTALL_FILE) ANNOUNCE AUTHORS BUGS FAQ README THANKS TODO \ $(TMP)/usr/share/doc/$(PKG)