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-xml-treepp | |
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-xml-treepp')
-rw-r--r-- | community/perl-xml-treepp/APKBUILD | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/community/perl-xml-treepp/APKBUILD b/community/perl-xml-treepp/APKBUILD index 3a2c0c5696..a8db16eca4 100644 --- a/community/perl-xml-treepp/APKBUILD +++ b/community/perl-xml-treepp/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-xml-treepp _pkgreal=XML-TreePP pkgver=0.43 -pkgrel=0 +pkgrel=1 pkgdesc="Pure Perl implementation for parsing/writing XML documents" url="http://search.cpan.org/dist/XML-TreePP/" arch="noarch" @@ -16,26 +16,29 @@ makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/K/KA/KAWASAKI/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" 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 +} + +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="f69693066e52591bf1142d3f4e6d37e5 XML-TreePP-0.43.tar.gz" -sha256sums="7fbe2d6430860059894aeeebf75d4cacf1bf8d7b75294eb87d8e1502f81bd760 XML-TreePP-0.43.tar.gz" sha512sums="4289a0a8100ef15f62f0e303f13094371ac6f1b54d887be1ed7e2ea31d7f1f6fc28d4234cf96458074137f756db3fe452ded170d3ee576f7eb2cfc9996cc31d1 XML-TreePP-0.43.tar.gz" |