aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-xml-writer
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 01:16:36 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-05 01:39:35 +0000
commitb1274f164d3742fc5a47f4ab85a91baef72338ec (patch)
tree7095e084822242b5cff89ac35bb3dee624642067 /community/perl-xml-writer
parent4c6f8e1fdf89d2899b81dd6a680a65e89e20b7a9 (diff)
downloadaports-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-writer')
-rw-r--r--community/perl-xml-writer/APKBUILD16
1 files changed, 7 insertions, 9 deletions
diff --git a/community/perl-xml-writer/APKBUILD b/community/perl-xml-writer/APKBUILD
index b2c04934d8..7b11f55dbd 100644
--- a/community/perl-xml-writer/APKBUILD
+++ b/community/perl-xml-writer/APKBUILD
@@ -3,7 +3,7 @@
pkgname=perl-xml-writer
_realname=XML-Writer
pkgver=0.625
-pkgrel=0
+pkgrel=1
pkgdesc="Perl extension for writing XML documents"
url="http://search.cpan.org/~josephw/XML-Writer-0.625/"
arch="noarch"
@@ -15,20 +15,18 @@ install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/J/JO/JOSEPHW/$_realname-$pkgver.tar.gz"
-_builddir="$srcdir"/$_realname-$pkgver
+builddir="$srcdir/$_realname-$pkgver"
build() {
- cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ 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="b9c2420c243c6a36ce45a008740fcede XML-Writer-0.625.tar.gz"
-sha256sums="e080522c6ce050397af482665f3965a93c5d16f5e81d93f6e2fe98084ed15fbe XML-Writer-0.625.tar.gz"
sha512sums="30ad348e7f1423ce82dc0709e767d4ae384ad6e76f6444c8a12d97b1dc9c2b39e2c5bec43779bc35891942fa75f852cd26e8831dd6b5cfb9c72bc8512ca55923 XML-Writer-0.625.tar.gz"