aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-www-robotrules/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/perl-www-robotrules/APKBUILD')
-rw-r--r--main/perl-www-robotrules/APKBUILD28
1 files changed, 12 insertions, 16 deletions
diff --git a/main/perl-www-robotrules/APKBUILD b/main/perl-www-robotrules/APKBUILD
index 6ea48d65f7..7c13364fb5 100644
--- a/main/perl-www-robotrules/APKBUILD
+++ b/main/perl-www-robotrules/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-www-robotrules
pkgver=6.02
-pkgrel=0
+pkgrel=1
pkgdesc="WWW::RobotRules perl module"
url="http://search.cpan.org/dist/WWW-RobotRules/"
arch="noarch"
@@ -14,26 +14,22 @@ replaces="perl-libwww"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/WWW-RobotRules-$pkgver.tar.gz"
-_builddir="$srcdir"/WWW-RobotRules-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir"/WWW-RobotRules-$pkgver
build() {
- cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make && make test || return 1
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ 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
}