diff options
author | Simon Frankenberger <simon@fraho.eu> | 2018-12-27 22:19:22 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-12-28 11:13:42 +0000 |
commit | 002dc35fcf51af01e3bde09a836a6e5207283a6d (patch) | |
tree | 5af119f6233502930e5da563bdcde4a4c0889acb | |
parent | cdee76d84f5cac0b2b944e9b57200c8c24760378 (diff) | |
download | aports-002dc35fcf51af01e3bde09a836a6e5207283a6d.tar.bz2 aports-002dc35fcf51af01e3bde09a836a6e5207283a6d.tar.xz |
main/perl-universal-require: Update to 0.18
-rw-r--r-- | main/perl-universal-require/APKBUILD | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/main/perl-universal-require/APKBUILD b/main/perl-universal-require/APKBUILD index f934f9a39d..8a8ee890de 100644 --- a/main/perl-universal-require/APKBUILD +++ b/main/perl-universal-require/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-universal-require -pkgver=0.13 +pkgver=0.18 pkgrel=0 pkgdesc="Require() modules from a variable" url="http://search.cpan.org/dist/UNIVERSAL-require/" @@ -11,29 +11,25 @@ depends="perl" makedepends="perl-dev" install="" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/M/MS/MSCHWERN/UNIVERSAL-require-$pkgver.tar.gz" +source="https://cpan.metacpan.org/authors/id/N/NE/NEILB/UNIVERSAL-require-$pkgver.tar.gz" -_builddir="$srcdir"/UNIVERSAL-require-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir"/UNIVERSAL-require-$pkgver build() { - cd "$_builddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make && make test || return 1 + cd "$builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -sha512sums="2c55fac8bc4940aa3faed27de2e6f80e708ff7b4edd3f7fa9d769cfac84bac802342ec2969657ffe8282cc9cc9b921ce63f73ebaec9164812a9b826fe341852a UNIVERSAL-require-0.13.tar.gz" +sha512sums="4e1dbb62f850a2f3da3301e37862d03ad89106e9fd55ac8161ae56eff936948f87b9215c734c103d8031e1b712847bff86de43329f65f00e7e34ee83bb66c22d UNIVERSAL-require-0.18.tar.gz" |