[astromenace] 05/07: Update debian/rules:

Boris Pek tehnick at moszumanska.debian.org
Fri Aug 4 14:59:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

tehnick pushed a commit to branch master
in repository astromenace.

commit 003d0b258f607dc5c3ea559365f81c1934afc98c
Author: Boris Pek <tehnick-8 at yandex.ru>
Date:   Fri Aug 4 17:50:23 2017 +0300

    Update debian/rules:
    
    - set DEB_CXXFLAGS_MAINT_APPEND, DEB_LDFLAGS_MAINT_APPEND and
      DEB_BUILD_MAINT_OPTIONS variables
    - simplify build rules
---
 debian/rules | 20 ++++++++------------
 1 file changed, 8 insertions(+), 12 deletions(-)

diff --git a/debian/rules b/debian/rules
index 17b778b..ed66e88 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,13 @@
 #!/usr/bin/make -f
 
-LDFLAGS+=-Wl,--as-needed
+DEBIAN_PATH  := $(abspath $(dir $(firstword $(MAKEFILE_LIST))))
+USCAN_REPORT = $(shell uscan --noconf --report --dehs $(DEBIAN_PATH))
+CUR_VER = $(shell echo "$(USCAN_REPORT)" | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
+CUR_URL = $(shell echo "$(USCAN_REPORT)" | sed -n 's/.*<upstream-url>\(.*\)<\/upstream-url>.*/\1/p')
+
+export DEB_CXXFLAGS_MAINT_APPEND = $(shell dpkg-buildflags --get CPPFLAGS)
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 %:
 	dh $@ --parallel
@@ -20,17 +27,6 @@ override_dh_auto_build:
 override_dh_install:
 	dh_install --exclude=astromenace_64.png
 
-override_dh_installchangelogs:
-	dh_installchangelogs ChangeLog.txt
-
-override_dh_builddeb:
-	dh_builddeb -- -Zxz
-
-DEBIAN_PATH := $(abspath $(dir $(MAKEFILE_LIST)))
-USCAN_REPORT = $(shell uscan --noconf --report --dehs $(DEBIAN_PATH))
-CUR_VER = $(shell echo "$(USCAN_REPORT)" | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
-CUR_URL = $(shell echo "$(USCAN_REPORT)" | sed -n 's/.*<upstream-url>\(.*\)<\/upstream-url>.*/\1/p')
-.PHONY: get-orig-source
 get-orig-source:
 	wget -c "$(CUR_URL)" -O "astromenace_$(CUR_VER).orig.tar.bz2"
 	tar xjf "astromenace_$(CUR_VER).orig.tar.bz2"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/astromenace.git



More information about the Pkg-games-commits mailing list