aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-output/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-04-06 10:14:55 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-04-06 10:14:55 +0000
commit30dea455719fae70117d927e55850022834078c6 (patch)
tree372dfb414d7a5737a722e44524d8748b7f99caa2 /main/perl-test-output/APKBUILD
parent311669891e5e87cdcd14864f2ee41a3837cfdd8a (diff)
downloadaports-30dea455719fae70117d927e55850022834078c6.tar.bz2
aports-30dea455719fae70117d927e55850022834078c6.tar.xz
main/perl-test-output: upgrade to 1.031, added maintainer, modernize APKBUILD
Diffstat (limited to 'main/perl-test-output/APKBUILD')
-rw-r--r--main/perl-test-output/APKBUILD29
1 files changed, 16 insertions, 13 deletions
diff --git a/main/perl-test-output/APKBUILD b/main/perl-test-output/APKBUILD
index 12b68728fd..dd91d65cd2 100644
--- a/main/perl-test-output/APKBUILD
+++ b/main/perl-test-output/APKBUILD
@@ -1,41 +1,44 @@
# Automatically generated by apkbuild-cpan, template 1
-# Contributor:
-# Maintainer:
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-test-output
_pkgreal=Test-Output
-pkgver=1.03
+pkgver=1.031
pkgrel=0
pkgdesc="Utilities to test STDOUT and STDERR messages."
url="http://search.cpan.org/dist/Test-Output/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-capture-tiny perl-sub-exporter perl-test-simple"
-cpanmakedepends=" "
+cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+check() {
+ cd "$builddir"
+ make test
+}
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
}
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="903485edb382f5a18a5029978d1febf6 Test-Output-1.03.tar.gz"
-sha256sums="3110af65c6fc59b9fa46b08a47508c5e85f6edc6355f0879e28b11f9ad0c2989 Test-Output-1.03.tar.gz"
-sha512sums="b7f793564c906f40444f249272dde55db1357923da72b6638634aece779d9cc5e8f4d7de0326fabb33e7c11eccf089069532f8f61529526467b579e1bacb4ee1 Test-Output-1.03.tar.gz"
+sha512sums="b443d5a4ab7be1c308b74ebc9a1a50022b404886e8a1dbd2700d974ead506a6976ec6d5c141528cf1c2833174c3afd9023362cb0b4e000f0e878d2e3e9f90e90 Test-Output-1.031.tar.gz"