[libimage-librsvg-perl] 01/03: Use $Config{vendorarch} to get library path in debian/rules.

gregor herrmann gregoa at debian.org
Mon Aug 11 17:00:33 UTC 2014


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

gregoa pushed a commit to branch master
in repository libimage-librsvg-perl.

commit b230f7c913bf17323b83b2a306b044316c2ea8f3
Author: gregor herrmann <gregoa at debian.org>
Date:   Mon Aug 11 18:51:22 2014 +0200

    Use $Config{vendorarch} to get library path in debian/rules.
---
 debian/rules | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 70c4793..f315efc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,8 @@ CFLAGS:=	$(shell dpkg-buildflags --get CFLAGS)
 CPPFLAGS:=	$(shell dpkg-buildflags --get CPPFLAGS)
 LDFLAGS:=	$(shell dpkg-buildflags --get LDFLAGS)
 
+ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
+
 export CFLAGS CPPFLAGS LDFLAGS
 
 override_dh_auto_configure:
@@ -17,7 +19,7 @@ override_dh_auto_build:
 
 override_dh_auto_install:
 	dh_auto_install
-	rm -f $(TMP)/usr/lib/perl5/Image/examples.pl
+	$(RM) -v $(TMP)/$(ARCHLIB)/Image/examples.pl
 
 override_dh_installexamples:
 	dh_installexamples -Xsvg.gz examples/*

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libimage-librsvg-perl.git



More information about the Pkg-perl-cvs-commits mailing list