aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-config-tiny
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-12-06 12:11:53 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-12-06 12:18:06 +0000
commit5fcf9eb2802c57bb047905e3047d391142e52041 (patch)
treecda92d76381d7760edf5ae98c75650d62aca76a9 /community/perl-config-tiny
parente5ab1fc88b1ff6b7c01adbb6dccf39b70f6cc16d (diff)
downloadaports-5fcf9eb2802c57bb047905e3047d391142e52041.tar.bz2
aports-5fcf9eb2802c57bb047905e3047d391142e52041.tar.xz
community/perl-c*: modernize APKBUILD
Changes: - Move tests to check() - Remove return 1 - Rename _builddir to builddir - Add missing default_prepare in prepare()
Diffstat (limited to 'community/perl-config-tiny')
-rw-r--r--community/perl-config-tiny/APKBUILD25
1 files changed, 14 insertions, 11 deletions
diff --git a/community/perl-config-tiny/APKBUILD b/community/perl-config-tiny/APKBUILD
index e514e7d353..9c0d40c593 100644
--- a/community/perl-config-tiny/APKBUILD
+++ b/community/perl-config-tiny/APKBUILD
@@ -4,7 +4,7 @@
pkgname=perl-config-tiny
_pkgreal=Config-Tiny
pkgver=2.23
-pkgrel=0
+pkgrel=1
pkgdesc="Perl module for Config-Tiny"
url="http://search.cpan.org/dist/Config-Tiny/"
arch="noarch"
@@ -16,29 +16,32 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RS/RSAVAGE/$_pkgreal-$pkgver.tgz"
-_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
+ perl Build.PL installdirs=vendor
else
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
fi
}
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="6c3bc610c4bc587e1441e651e01584ce Config-Tiny-2.23.tgz"
-sha256sums="9a8a66e3ed420cbc6585c43abeff788368309a46355cf69a64c2a47e1911e50c Config-Tiny-2.23.tgz"
sha512sums="c5c77aa18a387f181ba9bb2df8859c328073521e14163fe04fd7a104928bd68cf654eab88d24bd23e556e6ecc139dfed716fb7b8119e98cd2ab6f6915c976f01 Config-Tiny-2.23.tgz"