[arch-commits] Commit in perl/trunk (2 files)
Florian Pritz
bluewind at archlinux.org
Wed Feb 11 22:03:01 UTC 2015
Date: Wednesday, February 11, 2015 @ 23:03:00
Author: bluewind
Revision: 231302
prepare inclusion of makepkg-template file
Added:
perl/trunk/perl-binary-module-dependency-1.template
Modified:
perl/trunk/PKGBUILD
------------------------------------------+
PKGBUILD | 10 ++++++++--
perl-binary-module-dependency-1.template | 5 +++++
2 files changed, 13 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-02-11 19:45:20 UTC (rev 231301)
+++ PKGBUILD 2015-02-11 22:03:00 UTC (rev 231302)
@@ -7,7 +7,7 @@
pkgname=perl
pkgver=5.20.1
-pkgrel=1
+pkgrel=2
pkgdesc="A highly capable, feature-rich programming language"
arch=(i686 x86_64)
license=('GPL' 'PerlArtistic')
@@ -139,7 +139,8 @@
provides=(${provides[@]})
source=(http://www.cpan.org/src/5.0/perl-${pkgver}.tar.bz2
perlbin.sh
- perlbin.csh)
+ perlbin.csh
+ perl-binary-module-dependency-1.template)
options=('makeflags' '!purge' 'emptydirs')
md5sums=('ede5166f949d9a07163bc5b086be9759'
'5ed2542fdb9a60682f215bd33701e61a'
@@ -183,6 +184,11 @@
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR="$pkgdir" install
+ for template in "$srcdir/*.template"; do
+ install -Dm644 "$template" "$pkgdir/usr/share/makepkg-template/${template##*/}"
+ done
+ ls -s "perl-binary-module-dependency-1.template" "$pkgdir/usr/share/makepkg-template/perl-binary-module-dependency.template"
+
### Perl Settings ###
# Change man page extensions for site and vendor module builds.
# Set no mail address since bug reports should go to the bug tracker
Added: perl-binary-module-dependency-1.template
===================================================================
--- perl-binary-module-dependency-1.template (rev 0)
+++ perl-binary-module-dependency-1.template 2015-02-11 22:03:00 UTC (rev 231302)
@@ -0,0 +1,5 @@
+if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then
+ _perlver_min=$(perl -e '$v = $^V->{version}; print @{$v}[0].".".(@{$v}[1]);')
+ _perlver_max=$(perl -e '$v = $^V->{version}; print @{$v}[0].".".(@{$v}[1]+1);')
+ depends+=("perl>=$_perlver_min" "perl<$_perlver_max")
+fi
More information about the arch-commits
mailing list