diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-04 19:11:07 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-04 19:11:07 +0000 |
commit | 41d5e722c8c8e64fa2a5920e40e08c184b3da63d (patch) | |
tree | 969deff1adeb477bfa041aa97e9ebfe6be5dc7e7 /community/perl-task-weaken | |
parent | 9ac76dbeabbd9ec888dde23f56a9f108945693d6 (diff) | |
download | aports-41d5e722c8c8e64fa2a5920e40e08c184b3da63d.tar.bz2 aports-41d5e722c8c8e64fa2a5920e40e08c184b3da63d.tar.xz |
community/perl-task-weaken: modernize APKBUILD
Diffstat (limited to 'community/perl-task-weaken')
-rw-r--r-- | community/perl-task-weaken/APKBUILD | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/community/perl-task-weaken/APKBUILD b/community/perl-task-weaken/APKBUILD index a8d8628fe6..84666882e1 100644 --- a/community/perl-task-weaken/APKBUILD +++ b/community/perl-task-weaken/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-task-weaken _pkgreal=Task-Weaken pkgver=1.04 -pkgrel=1 +pkgrel=2 pkgdesc="Ensure that a platform has weaken support" url="http://search.cpan.org/dist/Task-Weaken/" arch="noarch" @@ -16,20 +16,25 @@ makedepends="perl-dev $cpanmakedepends perl-module-install" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + cd "$builddir" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" - make && make test + cd "$builddir" + make +} + +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |