diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-05 13:07:06 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-05 13:31:30 +0000 |
commit | 3ce302210e5b0a911d9657215d691b8fe4e5b9b5 (patch) | |
tree | 778ae8d17fb65f669c60b8d5eeeb3aa43bb87d58 /community/perl-object-insideout/APKBUILD | |
parent | a439676586c0e22b38559c0cfb70d81123930b3a (diff) | |
download | aports-3ce302210e5b0a911d9657215d691b8fe4e5b9b5.tar.bz2 aports-3ce302210e5b0a911d9657215d691b8fe4e5b9b5.tar.xz |
community/perl-[n-s]*: modernize APKBUILD
Changes:
- Move tests to check()
- Remove return 1
- rename _builddir to builddir
- add missing default_prepare in prepare()
Diffstat (limited to 'community/perl-object-insideout/APKBUILD')
-rw-r--r-- | community/perl-object-insideout/APKBUILD | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/community/perl-object-insideout/APKBUILD b/community/perl-object-insideout/APKBUILD index 07b4f03497..24ae9000eb 100644 --- a/community/perl-object-insideout/APKBUILD +++ b/community/perl-object-insideout/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-object-insideout _pkgreal=Object-InsideOut pkgver=4.02 -pkgrel=0 +pkgrel=1 pkgdesc="Comprehensive inside-out object support module" url="http://search.cpan.org/dist/Object-InsideOut/" arch="noarch" @@ -16,24 +16,29 @@ makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/J/JD/JDHEDDEN/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" - perl Build.PL installdirs=vendor || return 1 + default_prepare + + cd "$builddir" + perl Build.PL installdirs=vendor } build() { - cd "$_builddir" - ./Build && ./Build test + cd "$builddir" + ./Build +} + +check() { + cd "$builddir" + ./Build test } package() { - cd "$_builddir" - ./Build install destdir="$pkgdir" || return 1 + cd "$builddir" + ./Build install destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="aca3e8b0b15423d22ddfc95868ba5d00 Object-InsideOut-4.02.tar.gz" -sha256sums="e38a2435325d00427977b2fb89b54e61aedcf56f49a0236473ca995967b713ec Object-InsideOut-4.02.tar.gz" sha512sums="a89be17e0c765e3f0386eba2b945e7923fbf420ee492b1fdc32391dd4a183b21c1aae66998b9b8303b466bb82e54fa5d1518b085730a63f363e4062777d1a9c4 Object-InsideOut-4.02.tar.gz" |