diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-22 23:54:47 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-22 23:54:47 +0000 |
commit | eb9e9651956fad7f5100bded84354911a2b27034 (patch) | |
tree | 4d22210aade584b4d6b591d13fb66619b8bb430e /community/perl-getopt-argvfile/APKBUILD | |
parent | 309f6e65d8ddfeb8189f9bfb85e960d5ebbfc09e (diff) | |
download | aports-eb9e9651956fad7f5100bded84354911a2b27034.tar.bz2 aports-eb9e9651956fad7f5100bded84354911a2b27034.tar.xz |
community/perl-getopt-argvfile: modernize and add check
Diffstat (limited to 'community/perl-getopt-argvfile/APKBUILD')
-rw-r--r-- | community/perl-getopt-argvfile/APKBUILD | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/community/perl-getopt-argvfile/APKBUILD b/community/perl-getopt-argvfile/APKBUILD index 95e9c9cb40..0efb3cd1d0 100644 --- a/community/perl-getopt-argvfile/APKBUILD +++ b/community/perl-getopt-argvfile/APKBUILD @@ -3,7 +3,7 @@ pkgname=perl-getopt-argvfile pkgver=1.11 _realname=Getopt-ArgvFile-$pkgver -pkgrel=0 +pkgrel=1 pkgdesc="Interpolates script options from files into @ARGV or another array" url="http://search.cpan.org/dist/Getopt-ArgvFile/" arch="noarch" @@ -15,20 +15,23 @@ makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/J/JS/JSTENZEL/$_realname.tar.gz" -_builddir="$srcdir"/$_realname +builddir="$srcdir/$_realname" build() { - cd "$_builddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || 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 } -md5sums="42117db2af4a24c062b2da25d4fdf756 Getopt-ArgvFile-1.11.tar.gz" -sha256sums="3709aa513ce6fd71d1a55a02e34d2f090017d5350a9bd447005653c9b0835b22 Getopt-ArgvFile-1.11.tar.gz" sha512sums="832e9ec6de3dfa4aaac68faedd3561cac570761e0de805e084e8dc7b386579cd0a18278aeb262ea82fddbdf8277b17bbd7593c15d41b1d6d7de4739fc8cc8f11 Getopt-ArgvFile-1.11.tar.gz" |