aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-devel-hide/APKBUILD
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-01-01 17:45:15 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2018-01-01 17:45:17 +0000
commitccca3236711b56d6ecc58247063a4e4f51c80476 (patch)
treee36f3bc0f90ed33dda3f9f5c5db143eef78d8c3c /community/perl-devel-hide/APKBUILD
parent08c37535977c75460de510b473e579b299a934b0 (diff)
downloadaports-ccca3236711b56d6ecc58247063a4e4f51c80476.tar.bz2
aports-ccca3236711b56d6ecc58247063a4e4f51c80476.tar.xz
community/perl-d*: modernize APKBUILD
Changes: - Move tests to check() - Remove return 1 - Rename _builddir to builddir - Add missing default_prepare in prepare() - Remove old checksums
Diffstat (limited to 'community/perl-devel-hide/APKBUILD')
-rw-r--r--community/perl-devel-hide/APKBUILD21
1 files changed, 12 insertions, 9 deletions
diff --git a/community/perl-devel-hide/APKBUILD b/community/perl-devel-hide/APKBUILD
index 622d80a6f2..5fc47dcc59 100644
--- a/community/perl-devel-hide/APKBUILD
+++ b/community/perl-devel-hide/APKBUILD
@@ -3,7 +3,7 @@
pkgname=perl-devel-hide
_pkgreal=Devel-Hide
pkgver=0.0009
-pkgrel=0
+pkgrel=1
pkgdesc="Forces the unavailability of specified Perl modules (for testing)"
url="http://search.cpan.org/dist/Devel-Hide/"
arch="noarch"
@@ -15,26 +15,29 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/F/FE/FERREIRA/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ 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="ca2ed6a23b0a3af29962986761fc1171 Devel-Hide-0.0009.tar.gz"
-sha256sums="71dec40b9e53cd2dc98301ea4a64e1a95b71aa414f9b0d6d28c56c54f8fa16de Devel-Hide-0.0009.tar.gz"
sha512sums="c1cceb186de73f22132b2b9a16f75389b33b675aaa50c5095615f6f7c22fd0bad9edaf1d66d1cfbec6d536c93583b17a512bcae73310ac6a854e0c98c2ff6a9c Devel-Hide-0.0009.tar.gz"