diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-05 01:16:36 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-05 01:39:35 +0000 |
commit | b1274f164d3742fc5a47f4ab85a91baef72338ec (patch) | |
tree | 7095e084822242b5cff89ac35bb3dee624642067 /community/perl-text-bibtex | |
parent | 4c6f8e1fdf89d2899b81dd6a680a65e89e20b7a9 (diff) | |
download | aports-b1274f164d3742fc5a47f4ab85a91baef72338ec.tar.bz2 aports-b1274f164d3742fc5a47f4ab85a91baef72338ec.tar.xz |
community/perl-[t-y]: modernize APKBUILD
Changes:
- Move tests to check()
- Remove return 1
- rename _builddir to builddir
Diffstat (limited to 'community/perl-text-bibtex')
-rw-r--r-- | community/perl-text-bibtex/APKBUILD | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/community/perl-text-bibtex/APKBUILD b/community/perl-text-bibtex/APKBUILD index eb02805d77..9e5810265c 100644 --- a/community/perl-text-bibtex/APKBUILD +++ b/community/perl-text-bibtex/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-text-bibtex _pkgreal=Text-BibTeX pkgver=0.78 -pkgrel=1 +pkgrel=2 pkgdesc="Perl module for Text-BibTeX" url="http://search.cpan.org/dist/Text-BibTeX/" arch="all" @@ -18,7 +18,7 @@ source="http://search.cpan.org/CPAN/authors/id/A/AM/AMBS/$_pkgreal-$pkgver.tar.g builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - default_prepare || return 1 + default_prepare cd "$builddir" if [ -e Build.PL ]; then @@ -29,17 +29,20 @@ prepare() { } build() { - cd "$builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - ./Build && ./Build test + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + ./Build +} + +check() { + cd "$builddir" + ./Build test } package() { cd "$builddir" - ./Build install destdir="$pkgdir" || return 1 + ./Build install destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="551a25463dbf6349df9a158484d5a6c5 Text-BibTeX-0.78.tar.gz" -sha256sums="53036462b539ee7401eecb38d8fb78f8c6b724917890aa2a243ab176461adad1 Text-BibTeX-0.78.tar.gz" sha512sums="b888e2273db40a104a1206462b172587140389aa69eb725db589f137a532b87958182bf31734f873bc5f1dec2f6bedc6ed93c0e40ed82c014a0aff3f573242b5 Text-BibTeX-0.78.tar.gz" |