aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-strictures/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/perl-strictures/APKBUILD')
-rw-r--r--community/perl-strictures/APKBUILD23
1 files changed, 14 insertions, 9 deletions
diff --git a/community/perl-strictures/APKBUILD b/community/perl-strictures/APKBUILD
index 5615348523..d58c906c89 100644
--- a/community/perl-strictures/APKBUILD
+++ b/community/perl-strictures/APKBUILD
@@ -4,7 +4,7 @@
pkgname=perl-strictures
_pkgreal=strictures
pkgver=2.000002
-pkgrel=0
+pkgrel=1
pkgdesc="unknown"
url="http://search.cpan.org/dist/strictures/"
arch="noarch"
@@ -16,26 +16,31 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/strictures-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ default_prepare
+
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
+ cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- make && make test
+ 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="fb1fada8260992bc85e126c21ffcc6d5 strictures-2.000002.tar.gz"
-sha256sums="130355dcb3afd8c3c8213c24b924e71deb7e1e1197da8f90c5ae191766aa4100 strictures-2.000002.tar.gz"
sha512sums="30e7d02b4a240ef201e80f49066205f8563efade402bded4d0a818b0bde7c3bc5c4378e65b4e537ebd22d97ccab44e245764862eba5919770340d3811de346ef strictures-2.000002.tar.gz"