[libfile-mmagic-xs-perl] 01/02: Use $Config{vendorarch} to get library path in debian/rules.
gregor herrmann
gregoa at debian.org
Mon Aug 11 16:50:16 UTC 2014
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libfile-mmagic-xs-perl.
commit b22c8cc9a743e44b560cc0e8b82b9871d8ce90b8
Author: gregor herrmann <gregoa at debian.org>
Date: Mon Aug 11 18:47:05 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 bfe740b..2d38492 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,10 +3,12 @@
PACKAGE := $(shell dh_listpackages)
TMP := $(CURDIR)/debian/$(PACKAGE)
+ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
+
%:
dh $@
override_dh_auto_install:
dh_auto_install
# we install benchmark.pl as an example later
- [ ! -f $(TMP)/usr/lib/perl5/File/MMagic/benchmark.pl ] || rm $(TMP)/usr/lib/perl5/File/MMagic/benchmark.pl
+ [ ! -f $(TMP)/$(ARCHLIB)/File/MMagic/benchmark.pl ] || $(RM) -v $(TMP)/$(ARCHLIB)/File/MMagic/benchmark.pl
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libfile-mmagic-xs-perl.git
More information about the Pkg-perl-cvs-commits
mailing list