X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=debian%2Frules;h=d4e572c87aa7b61d76b6d95ff8b16561c238af2f;hb=535ad70b710dd0f45f044856a69b8256e39051b3;hp=3fd4136e6c86a2977ba18803108d1c8b5d2b7a1f;hpb=c4ad285b4dd0c51f7a4983d3bd7e555c89ad7781;p=pkg%2Fabook.git diff --git a/debian/rules b/debian/rules index 3fd4136..d4e572c 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 @@ -49,6 +53,9 @@ install: build $(INSTALL_DIR) $(TMP) cd $(TMP) && $(INSTALL_DIR) usr/share/doc/$(PKG)/examples $(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)