aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-readonly/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/perl-readonly/APKBUILD')
-rw-r--r--community/perl-readonly/APKBUILD15
1 files changed, 10 insertions, 5 deletions
diff --git a/community/perl-readonly/APKBUILD b/community/perl-readonly/APKBUILD
index 1aa6d4cb2e..2764b181de 100644
--- a/community/perl-readonly/APKBUILD
+++ b/community/perl-readonly/APKBUILD
@@ -3,7 +3,7 @@
pkgname=perl-readonly
_pkgname=Readonly
pkgver=2.05
-pkgrel=0
+pkgrel=1
pkgdesc="Facility for creating read-only scalars, arrays, hashes"
url="https://github.com/sanko/readonly"
arch="noarch"
@@ -14,21 +14,26 @@ source="https://cpan.metacpan.org/authors/id/S/SA/SANKO/$_pkgname-$pkgver.tar.gz
builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
- default_prepare || return 1
+ default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- perl Build.PL --installdirs=vendor || return 1
+ perl Build.PL --installdirs=vendor
}
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- ./Build && ./Build test
+ ./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
}