diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-06-22 14:25:29 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2018-07-03 13:10:30 +0000 |
commit | dcd0d7089d19996375bcfded9916d41ebea1d21c (patch) | |
tree | a4c376033de2b0926ff0166a2f3f443af6a642dc | |
parent | 2f2bf4fe6b74a198b3b236ffb09e4a52f6c612d6 (diff) | |
download | aports-dcd0d7089d19996375bcfded9916d41ebea1d21c.tar.bz2 aports-dcd0d7089d19996375bcfded9916d41ebea1d21c.tar.xz |
main/perl-test-longstring: upgrade to 0.17 and modernize
-rw-r--r-- | main/perl-test-longstring/APKBUILD | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/main/perl-test-longstring/APKBUILD b/main/perl-test-longstring/APKBUILD index b360db30c2..65a5ed9621 100644 --- a/main/perl-test-longstring/APKBUILD +++ b/main/perl-test-longstring/APKBUILD @@ -1,39 +1,35 @@ # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-test-longstring -pkgver=0.15 +_pkgname=Test-LongString +pkgver=0.17 pkgrel=0 -pkgdesc="Test::LongString perl module" +pkgdesc="Tests strings for equality" url="http://search.cpan.org/dist/Test-LongString/" arch="noarch" license="GPL-2.0 or Artistic" depends="perl" makedepends="perl-dev" -install="" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/Test-LongString-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/$_pkgname-$pkgver.tar.gz" -_builddir="$srcdir"/Test-LongString-$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/$_pkgname-$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="d50bcba177280ff6da17720bde03dce0fe2b034aa7eeaa8825ccf983cbb8e60ee8f18179e47cfd43db1cac217bf30c38d224fb3557fb76ab3b58f573fd1ef529 Test-LongString-0.15.tar.gz" +sha512sums="1c0cd6fea35bb72816451ce0790002c9dfb945390bc85d22d04670dd5af7ebbe795307ad361e2615ce4ab4f02a317a3aa5d297f2165bd3b1f6de40b3240f1352 Test-LongString-0.17.tar.gz" |