[med-svn] [libhmsbeagle] 06/06: Use DEB_SOURCE

Andreas Tille tille at debian.org
Sat Jun 24 11:26:10 UTC 2017


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

tille pushed a commit to branch master
in repository libhmsbeagle.

commit 6080b3ce3361f6bce12a549d124fca1d0e16ea39
Author: Andreas Tille <tille at debian.org>
Date:   Sat Jun 24 12:55:56 2017 +0200

    Use DEB_SOURCE
---
 debian/rules | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/debian/rules b/debian/rules
index c2028c7..e34f07e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,8 +7,9 @@ export DH_VERBOSE=1
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
 
-pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
-lib := $(pkg)1v5
+include /usr/share/dpkg/default.mk
+
+lib := $(DEB_SOURCE)1v5
 use_sse := $(shell if [ `dpkg-architecture -qDEB_BUILD_ARCH` = amd64 ] ; then echo yes ; else echo no ; fi)
 BUILDGNUTYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 BUILDARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
@@ -27,7 +28,7 @@ override_dh_auto_build:
 
 override_dh_install:
 	dh_install
-	jniso=`find debian/$(lib) -name $(pkg)-jni.so` ; \
+	jniso=`find debian/$(lib) -name $(DEB_SOURCE)-jni.so` ; \
 	mkdir -p `dirname $$jniso`/jni ; \
 	mv $$jniso `dirname $$jniso`/jni
 
@@ -38,8 +39,8 @@ override_dh_auto_clean:
 
 override_dh_installdocs:
 	dh_installdocs
-	find debian/$(pkg)-dev -name jquery.js -delete
-	find debian/$(pkg)-dev -name "*.md5" -delete
+	find debian/$(DEB_SOURCE)-dev -name jquery.js -delete
+	find debian/$(DEB_SOURCE)-dev -name "*.md5" -delete
 
 # run tests only on platforms supporting opencl
 # see https://lists.debian.org/debian-mentors/2015/08/msg00081.html

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libhmsbeagle.git



More information about the debian-med-commit mailing list