aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-xml-twig/APKBUILD
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-twig/APKBUILD
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-twig/APKBUILD')
-rw-r--r--community/perl-xml-twig/APKBUILD21
1 files changed, 12 insertions, 9 deletions
diff --git a/community/perl-xml-twig/APKBUILD b/community/perl-xml-twig/APKBUILD
index 205c90e777..71fa4b6270 100644
--- a/community/perl-xml-twig/APKBUILD
+++ b/community/perl-xml-twig/APKBUILD
@@ -4,7 +4,7 @@
pkgname=perl-xml-twig
_pkgreal=XML-Twig
pkgver=3.52
-pkgrel=0
+pkgrel=1
pkgdesc="XML, The Perl Way"
url="http://search.cpan.org/dist/XML-Twig/"
arch="noarch"
@@ -16,24 +16,27 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MI/MIROD/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ 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="14fbaf5ea8729b797ada51a880b6720e XML-Twig-3.52.tar.gz"
-sha256sums="fef75826c24f2b877d0a0d2645212fc4fb9756ed4d2711614ac15c497e8680ad XML-Twig-3.52.tar.gz"
sha512sums="1594e127fb76c0e53d0bd1f0a12fe3874c9523dd2bc55675d5a6cf44d5682ddea481671f786d3a65e6b69f5307c4da1701529f318453a1f8a22685b2dae793a6 XML-Twig-3.52.tar.gz"