X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=debian%2Frules;h=1c788f5eb41bb779673677c16d4c17d6fd4b494b;hb=f438efb3ce3b64df78ea007fa2c321a49201e117;hp=56cae22af82f7216a4a0698a520b19c1eedc9a03;hpb=37ef60ac9891a4bddc7d6a4bdba24837e10abd0f;p=pkg%2Fbeep.git diff --git a/debian/rules b/debian/rules index 56cae22..1c788f5 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,7 @@ #!/usr/bin/make -f # debian/rules file for beep +# copyright 2002++ by Gerfried Fuchs +# Licenced the same way as beep itself PKG1 = beep TMP1 = $(CURDIR)/debian/$(PKG1) @@ -23,18 +25,21 @@ else endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s + STRIP = true endif -clean: +include /usr/share/quilt/quilt.make + +clean: unpatch $(checkdir) $(checkroot) -rm -rf $(TMP1) $(TMP2) debian/substvars debian/files build-stamp - -$(MAKE) clean + [ ! -f beep ] || $(MAKE) clean build: build-stamp -build-stamp: +build-stamp: patch $(checkdir) $(MAKE) FLAGS="$(FLAGS)" touch build-stamp @@ -59,6 +64,9 @@ install: build cd $(TMP1)/usr/share/doc/$(PKG1) && gzip -9 changelog README $(INSTALL_DIR) $(TMP2)/usr/bin $(INSTALL_PROGRAM) beep $(TMP2)/usr/bin + test "$(STRIP)" != true || strip \ + --remove-section=.comment --remove-section=.note \ + $(TMP1)/usr/bin/beep $(TMP2)/usr/bin/beep # Build architecture-independent files here. @@ -69,8 +77,7 @@ binary-indep: build binary-arch: build install $(checkdir) $(checkroot) - $(INSTALL_DIR) $(TMP1)/DEBIAN $(TMP1)/usr/share/lintian/overrides \ - $(TMP2)/DEBIAN + $(INSTALL_DIR) $(TMP1)/DEBIAN $(TMP2)/DEBIAN $(INSTALL_FILE) debian/README.Debian debian/copyright \ $(TMP1)/usr/share/doc/$(PKG1) $(INSTALL_FILE) debian/changelog \ @@ -78,8 +85,6 @@ binary-arch: build install gzip -9 $(TMP1)/usr/share/doc/$(PKG1)/changelog.Debian $(INSTALL_SCRIPT) debian/postinst debian/postrm debian/config \ $(TMP1)/DEBIAN - $(INSTALL_FILE) debian/overrides \ - $(TMP1)/usr/share/lintian/overrides/$(PKG1) po2debconf debian/templates > $(TMP1)/DEBIAN/templates dpkg-shlibdeps -Tdebian/substvars -dDepends $(TMP1)/usr/bin/beep dpkg-gencontrol -ldebian/changelog -isp -Tdebian/substvars -p$(PKG1) \ @@ -88,7 +93,7 @@ binary-arch: build install xargs -r0 md5sum > DEBIAN/md5sums dpkg --build $(TMP1) .. dpkg-gencontrol -ldebian/changelog -isp -Tdebian/substvars -p$(PKG2) \ - -P$(TMP2) -n$(PKG2)_$(VERSION)_$(ARCH).udeb + -P$(TMP2) -UHomepage -n$(PKG2)_$(VERSION)_$(ARCH).udeb dpkg --build $(TMP2) ../$(PKG2)_$(VERSION)_$(ARCH).udeb