diff options
-rw-r--r-- | community/perl-business-ismn/APKBUILD | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/community/perl-business-ismn/APKBUILD b/community/perl-business-ismn/APKBUILD index e52003a070..9c19cf9e3f 100644 --- a/community/perl-business-ismn/APKBUILD +++ b/community/perl-business-ismn/APKBUILD @@ -1,44 +1,33 @@ -# Automatically generated by apkbuild-cpan, template 1 +# Automatically generated by apkbuild-cpan, template 3 # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=perl-business-ismn +#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Business-ISMN pkgver=1.201 -pkgrel=1 +pkgrel=2 pkgdesc="Work with International Standard Music Numbers" url="https://metacpan.org/release/Business-ISMN/" arch="noarch" -license="GPL PerlArtistic" -cpandepends="perl-tie-cycle" -checkdepends="perl-test-pod perl-test-pod-coverage" -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" +license="Artistic-2.0" +depends="perl perl-tie-cycle" +makedepends="perl-dev" subpackages="$pkgname-doc" -source="https://cpan.metacpan.org/authors/id/B/BD/BDFOY/$_pkgreal-$pkgver.tar.gz" - +source="https://cpan.metacpan.org/authors/id/B/BD/BDFOY/Business-ISMN-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" -prepare() { - 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" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor make } check() { - cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { - cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |