diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-04-03 07:55:56 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-04-03 07:58:44 +0000 |
commit | 8f64e6bc722e8ddf921f1432196f9e2cfc90303f (patch) | |
tree | 03e51d081ace1b76f446e6329c76253a51f81930 /main/perl-parse-recdescent | |
parent | 4d49492f8be37d058a09f7b965034dcd5be659f3 (diff) | |
download | aports-8f64e6bc722e8ddf921f1432196f9e2cfc90303f.tar.bz2 aports-8f64e6bc722e8ddf921f1432196f9e2cfc90303f.tar.xz |
main/perl-parse-recdescent: add check(), modernize APKBUILD
Diffstat (limited to 'main/perl-parse-recdescent')
-rw-r--r-- | main/perl-parse-recdescent/APKBUILD | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/main/perl-parse-recdescent/APKBUILD b/main/perl-parse-recdescent/APKBUILD index 4b008537ce..e9be90b38b 100644 --- a/main/perl-parse-recdescent/APKBUILD +++ b/main/perl-parse-recdescent/APKBUILD @@ -3,29 +3,40 @@ pkgname=perl-parse-recdescent _realname=Parse-RecDescent pkgver=1.967014 -pkgrel=0 +pkgrel=1 pkgdesc="Generate Recursive-Descent Parsers" url="http://search.cpan.org/~dconway/Parse-RecDescent-1.96.0/" arch="noarch" license="Unknown" depends="perl" makedepends="perl-dev" +checkdepends="perl-test-pod perl-test-warn" install= subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/J/JT/JTBRAUN/$_realname-$pkgver.tar.gz" +builddir="$srcdir/$_realname-$pkgver" -build() { - cd "$srcdir/$_realname-$pkgver" - +prepare() { + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 +} + +build() { + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` make || return 1 } package() { - cd "$srcdir/$_realname-$pkgver" + cd "$builddir" make DESTDIR="$pkgdir" install - # creates file collision among perl modules - find "$pkgdir" -name perllocal.pod -delete + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +check() { + cd "$builddir" + make test } sha512sums="bdb369cc8ef47f428d52192271d57baaa88db986f4765ef9262bcb82fda1e619102387ce1828998057adb5607e6def667ba557766af470e2ea2cbe00ee31d16a Parse-RecDescent-1.967014.tar.gz" |