Commit 2e2e4558 authored by Francesco Colista's avatar Francesco Colista

community/perl-business-isbn: upgrade to 3.004, modernize APKBUILD

parent 612dcda9
......@@ -3,7 +3,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-business-isbn
_pkgreal=Business-ISBN
pkgver=3.003
pkgver=3.004
pkgrel=0
pkgdesc="work with International Standard Book Numbers"
url="http://search.cpan.org/dist/Business-ISBN/"
......@@ -17,9 +17,14 @@ subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare || return 1
check() {
cd "$builddir"
make test
}
prepare() {
default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
......@@ -28,15 +33,13 @@ prepare() {
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="dcb00b9443c66e488406f4dadc741947 Business-ISBN-3.003.tar.gz"
sha256sums="f585e17350b016e784a53df3437451bce617a4cf4471bd703e45c439f1ef4bc4 Business-ISBN-3.003.tar.gz"
sha512sums="7321290de47e1a6cfe6bbdcc9eae410a45fa6148da233fca122e6366737d3dacb6a0329db1c5b191db6c064ee0679324fe00675b8bc055fbf6771badbb4ea8af Business-ISBN-3.003.tar.gz"
sha512sums="0ffdfac05da6852a0acc4399acb9cb5171cbc46b5d7b11ee3544763d57946282c06a29c2fbf4ef678f4c1f76a6df0f5def3be76224e3f842f66669aabf394121 Business-ISBN-3.004.tar.gz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment