aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-01-02 00:56:32 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2018-01-02 00:56:32 +0000
commita3a698b332ab08712487e8edf00b61133ac5d2f6 (patch)
tree3df417c81960b67688bd7e54e5c6b6694b99fd94 /testing
parent1de0f1a602de9aa918179b304cf86ac1aae01c47 (diff)
downloadaports-a3a698b332ab08712487e8edf00b61133ac5d2f6.tar.bz2
aports-a3a698b332ab08712487e8edf00b61133ac5d2f6.tar.xz
testing/perl-class-xsaccessor: modernize APKBUILD
Diffstat (limited to 'testing')
-rw-r--r--testing/perl-class-xsaccessor/APKBUILD25
1 files changed, 15 insertions, 10 deletions
diff --git a/testing/perl-class-xsaccessor/APKBUILD b/testing/perl-class-xsaccessor/APKBUILD
index c047d64eee..97d3d2e122 100644
--- a/testing/perl-class-xsaccessor/APKBUILD
+++ b/testing/perl-class-xsaccessor/APKBUILD
@@ -4,36 +4,41 @@
pkgname=perl-class-xsaccessor
_pkgreal=Class-XSAccessor
pkgver=1.19
-pkgrel=3
+pkgrel=4
pkgdesc="Generate fast XS accessors without runtime compilation"
url="http://search.cpan.org/dist/Class-XSAccessor/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
-cpanmakedepends=" "
+cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SM/SMUELLER/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ default_prepare
+
+ cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
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
}
-md5sums="5c5dea74f00ad37c5119dd22b28a5563 Class-XSAccessor-1.19.tar.gz"
-sha256sums="99c56b395f1239af19901f2feeb125d9ecb4e351a0d80daa9529211a4700a6f2 Class-XSAccessor-1.19.tar.gz"
sha512sums="58855bb2108b60cc90ae1d1c4d6a011da7bac2d063c7c953ff8610ae164ba60731a664f0fbddf148e1eabb60042913a17633a9c9a8936a23a59130b381bf63f8 Class-XSAccessor-1.19.tar.gz"