diff options
Diffstat (limited to 'main/perl-html-parser/APKBUILD')
-rw-r--r-- | main/perl-html-parser/APKBUILD | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/main/perl-html-parser/APKBUILD b/main/perl-html-parser/APKBUILD index b08c87016b..086a0f0646 100644 --- a/main/perl-html-parser/APKBUILD +++ b/main/perl-html-parser/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-html-parser _pkgreal=HTML-Parser pkgver=3.72 -pkgrel=1 +pkgrel=2 pkgdesc="HTML parser class" url="http://search.cpan.org/dist/HTML-Parser/" arch="all" @@ -16,26 +16,29 @@ makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_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="eb7505e5f626913350df9dd4a03d54a8 HTML-Parser-3.72.tar.gz" -sha256sums="ec28c7e1d9e67c45eca197077f7cdc41ead1bb4c538c7f02a3296a4bb92f608b HTML-Parser-3.72.tar.gz" sha512sums="9fded69219791af085018ffbe6737e74e370c543af52aa221aec174daf52d1b8d3cdd07f025176c0212ae572a924555262f2eefc73781f82cdb7d9cff58ae716 HTML-Parser-3.72.tar.gz" |