aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-11 12:18:48 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2017-11-13 09:08:07 +0000
commita2451f96f905a52d96c89c1fbc702055436f9323 (patch)
tree4319437adf596ea351fba57ea10aada9c6604725
parentfc9b0716d72699cb453f56140061d911a25d1516 (diff)
downloadaports-a2451f96f905a52d96c89c1fbc702055436f9323.tar.bz2
aports-a2451f96f905a52d96c89c1fbc702055436f9323.tar.xz
main/perl-stream-buffered: add missing make dependency and modernize
-rw-r--r--main/perl-stream-buffered/APKBUILD27
1 files changed, 17 insertions, 10 deletions
diff --git a/main/perl-stream-buffered/APKBUILD b/main/perl-stream-buffered/APKBUILD
index 9b7cd02adf..17c8a7b332 100644
--- a/main/perl-stream-buffered/APKBUILD
+++ b/main/perl-stream-buffered/APKBUILD
@@ -4,35 +4,42 @@
pkgname=perl-stream-buffered
_pkgreal=Stream-Buffered
pkgver=0.02
-pkgrel=0
-pkgdesc="temporary buffer to save bytes"
+pkgrel=1
+pkgdesc="Temporary buffer to save bytes"
url="http://search.cpan.org/dist/Stream-Buffered/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
-cpanmakedepends=" "
+cpanmakedepends=""
depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
+makedepends="perl-dev $cpanmakedepends perl-module-install"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DO/DOY/$_pkgreal-$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
}