aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-text-glob
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 01:16:36 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 01:39:35 +0000
commitb1274f164d3742fc5a47f4ab85a91baef72338ec (patch)
tree7095e084822242b5cff89ac35bb3dee624642067 /community/perl-text-glob
parent4c6f8e1fdf89d2899b81dd6a680a65e89e20b7a9 (diff)
downloadaports-b1274f164d3742fc5a47f4ab85a91baef72338ec.tar.bz2
aports-b1274f164d3742fc5a47f4ab85a91baef72338ec.tar.xz
community/perl-[t-y]: modernize APKBUILD
Changes: - Move tests to check() - Remove return 1 - rename _builddir to builddir
Diffstat (limited to 'community/perl-text-glob')
-rw-r--r--community/perl-text-glob/APKBUILD19
1 files changed, 12 insertions, 7 deletions
diff --git a/community/perl-text-glob/APKBUILD b/community/perl-text-glob/APKBUILD
index 60c786bc03..3a4aac7d88 100644
--- a/community/perl-text-glob/APKBUILD
+++ b/community/perl-text-glob/APKBUILD
@@ -4,7 +4,7 @@
pkgname=perl-text-glob
_pkgreal=Text-Glob
pkgver=0.11
-pkgrel=0
+pkgrel=1
pkgdesc="match globbing patterns against text"
url="http://search.cpan.org/dist/Text-Glob/"
arch="noarch"
@@ -16,10 +16,10 @@ makedepends="perl-dev $cpanmakedepends perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RC/RCLAMP/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ cd "$builddir"
if [ -e Build.PL ]; then
perl Build.PL installdirs=vendor || return 1
else
@@ -28,13 +28,18 @@ prepare() {
}
build() {
- cd "$_builddir"
- make && make test
+ cd "$builddir"
+ 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
}