aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-xml-bare
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2018-02-14 15:07:04 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2018-02-14 15:07:18 +0000
commit96be1654e8a6fa631a919dd0ec4b681c3bde9d8a (patch)
treea21630a17f13bc1141c0b3cdcf555e23edfd943d /testing/perl-xml-bare
parent9b84a5dfae15625dffc149c5039644dd9c331334 (diff)
downloadaports-96be1654e8a6fa631a919dd0ec4b681c3bde9d8a.tar.bz2
aports-96be1654e8a6fa631a919dd0ec4b681c3bde9d8a.tar.xz
testing/perl-xml-bare: modernize APKBUILD
Diffstat (limited to 'testing/perl-xml-bare')
-rw-r--r--testing/perl-xml-bare/APKBUILD25
1 files changed, 15 insertions, 10 deletions
diff --git a/testing/perl-xml-bare/APKBUILD b/testing/perl-xml-bare/APKBUILD
index 58b1bcc267..bc5b466ddf 100644
--- a/testing/perl-xml-bare/APKBUILD
+++ b/testing/perl-xml-bare/APKBUILD
@@ -4,38 +4,43 @@
pkgname=perl-xml-bare
_pkgreal=XML-Bare
pkgver=0.53
-pkgrel=2
+pkgrel=3
pkgdesc="A minimal XML parser / schema checker / pretty-printer using C internally."
url="http://search.cpan.org/dist/XML-Bare/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
-cpanmakedepends=" "
+cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/C/CO/CODECHILD/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- cd "$_builddir"
+ default_prepare
+
+ 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="5e9c3dbe4368034fcff392333203339b XML-Bare-0.53.tar.gz"
-sha256sums="865e198e98d904be1683ef5a53a4948f02dabdacde59fc554a082ffbcc5baefd XML-Bare-0.53.tar.gz"
sha512sums="e765206e5c98ed3a0c29be3a323e25beaa712489d0461e2e7269f5f3383fa805ba3829a9ed4d31cd86f35400c321f8cf519162cc41f52f8ba6992c7016f63520 XML-Bare-0.53.tar.gz"