diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-27 13:20:49 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-27 13:20:51 +0000 |
commit | 562bc57b582f8d4a3c659cd124fa939cf9d7deb7 (patch) | |
tree | 58bb714c50c6a3e4bdd2527ab0f40d675dccf067 /community/perl-appconfig | |
parent | ae852e430b290c505942dde52442793ff69171fa (diff) | |
download | aports-562bc57b582f8d4a3c659cd124fa939cf9d7deb7.tar.bz2 aports-562bc57b582f8d4a3c659cd124fa939cf9d7deb7.tar.xz |
community/perl-[a-b]*: 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-appconfig')
-rw-r--r-- | community/perl-appconfig/APKBUILD | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/community/perl-appconfig/APKBUILD b/community/perl-appconfig/APKBUILD index 295b96834c..961a3ac775 100644 --- a/community/perl-appconfig/APKBUILD +++ b/community/perl-appconfig/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-appconfig _pkgreal=AppConfig pkgver=1.71 -pkgrel=0 +pkgrel=1 pkgdesc="AppConfig is a bundle of Perl5 modules for reading configuration files and parsing command line arguments." url="http://search.cpan.org/dist/AppConfig/" arch="noarch" @@ -16,24 +16,28 @@ makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/$_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="7747d9241561ed5567d5e134b8648707 AppConfig-1.71.tar.gz" -sha256sums="1177027025ecb09ee64d9f9f255615c04db5e14f7536c344af632032eb887b0f AppConfig-1.71.tar.gz" sha512sums="cbd58601ce0ea6c237e86b8b013cf75e552914263f56b1ab26b8079bff75b28ca2bb35585bfaa187b611afa969767c25494d3ec2a6b3ff5d1aecd2f9ffa8df72 AppConfig-1.71.tar.gz" |