diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-01-04 23:59:44 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-01-04 23:59:44 +0000 |
commit | 703b020b15e87f815b1dd2c86445d0228b0dcbd2 (patch) | |
tree | 4b2f36ad180d30d4fa5f050286db33401d3eb881 /testing/perl-string-random | |
parent | 78e3b86853b756e93fa3ead437542c2834db6ff6 (diff) | |
download | aports-703b020b15e87f815b1dd2c86445d0228b0dcbd2.tar.bz2 aports-703b020b15e87f815b1dd2c86445d0228b0dcbd2.tar.xz |
testing/perl-string-random: modernize and add check
Diffstat (limited to 'testing/perl-string-random')
-rw-r--r-- | testing/perl-string-random/APKBUILD | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/testing/perl-string-random/APKBUILD b/testing/perl-string-random/APKBUILD index 81094e793e..417f4bc75b 100644 --- a/testing/perl-string-random/APKBUILD +++ b/testing/perl-string-random/APKBUILD @@ -3,7 +3,7 @@ pkgname=perl-string-random _realname=String-Random pkgver=0.29 -pkgrel=0 +pkgrel=1 pkgdesc="Perl extension to generate random strings" url="http://search.cpan.org/~shlomif/String-Random-0.29/" arch="noarch" @@ -16,16 +16,19 @@ builddir="$srcdir"/$_realname-$pkgver build() { cd "$builddir" - perl Build.PL installdirs=vendor || return 1 - ./Build || return 1 + perl Build.PL installdirs=vendor + ./Build +} + +check() { + cd "$builddir" + ./Build test } package() { cd "$builddir" - ./Build install destdir="$pkgdir" || return 1 + ./Build install destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="2fedadd106e6f9fd3ecb18a264816b51 String-Random-0.29.tar.gz" -sha256sums="1da4a65e66ab1db23fedca018355b597cf69c94dd73dec657212820055515a5c String-Random-0.29.tar.gz" sha512sums="0a939c874962d49d167ce91fe943fdb8dc1e7d506c086750600af9d5f8c40b2e679358f73554e51673a7663dfcf5439ef101096fca8c771e3de654a91c802525 String-Random-0.29.tar.gz" |