diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-02-04 07:22:26 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-02-04 07:39:35 +0000 |
commit | 70395c249b0b278cfce0965c3306a92384fa86f5 (patch) | |
tree | c559a661a4ec4b81940d5646ddc4c42d850e0356 /main/perl-inline | |
parent | 5c4a8c32e3737534e17489bd9ca45f6391037343 (diff) | |
download | aports-70395c249b0b278cfce0965c3306a92384fa86f5.tar.bz2 aports-70395c249b0b278cfce0965c3306a92384fa86f5.tar.xz |
main/perl-inline: upgrade to 0.81
Modernize APKBUILD, add check()
Diffstat (limited to 'main/perl-inline')
-rw-r--r-- | main/perl-inline/APKBUILD | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/main/perl-inline/APKBUILD b/main/perl-inline/APKBUILD index d5d171e40b..e1b299388f 100644 --- a/main/perl-inline/APKBUILD +++ b/main/perl-inline/APKBUILD @@ -1,41 +1,38 @@ # Contributor: Leonardo Arena <rnalrd@alpinelinux.org> # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=perl-inline -_realname=Inline -pkgver=0.80 -pkgrel=1 +_pkgname=Inline +pkgver=0.81 +pkgrel=0 pkgdesc="Write Perl subroutines in other programming languages" url="http://search.cpan.org/~ingy/Inline/" arch="noarch" license="Artistic-1.0 GPL+" depends="perl" makedepends="perl-dev" -install= +checkdepends="perl-test-warn" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/I/IN/INGY/$_realname-$pkgver.tar.gz - " - -_builddir="$srcdir"/$_realname-$pkgver +source="https://cpan.metacpan.org/authors/id/T/TI/TINITA/Inline-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver prepare() { - cd $_builddir - return 0 + default_prepare + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd $_builddir + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make +} - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 +check() { + make test } package() { - 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 } -md5sums="510bbac46e727bcaf240b7feac2646c9 Inline-0.80.tar.gz" -sha256sums="7e2bd984b1ebd43e336b937896463f2c6cb682c956cbd2c311a464363d2ccef6 Inline-0.80.tar.gz" -sha512sums="e64f7752f32fd07c7c7a975429e04730f2987c9588f99b95502d4e5c87d458736a606c03943a68660940c3987cd632ad2f75ec3862342956c1754b1aca86e0bb Inline-0.80.tar.gz" +sha512sums="ea52647af6a51e6902d78c448e53814f1f3de225d3cf5530764d880f604ddea6dc6e6272619a918c213ce611bf3643f602e779d56e503245987b86363cb0501a Inline-0.81.tar.gz" |