diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 14:56:14 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 14:56:14 +0000 |
commit | b56a1ec9dddc475a14de530e809edd064cfc13f3 (patch) | |
tree | 06c69ae9bf25fbacfe9d221cee0bd1336725ac0c /community/perl-business-issn | |
parent | c971980046f87f24e4530983758a733ee88c6358 (diff) | |
download | aports-b56a1ec9dddc475a14de530e809edd064cfc13f3.tar.bz2 aports-b56a1ec9dddc475a14de530e809edd064cfc13f3.tar.xz |
community/perl-business-issn: moved from testing
Diffstat (limited to 'community/perl-business-issn')
-rw-r--r-- | community/perl-business-issn/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/perl-business-issn/APKBUILD b/community/perl-business-issn/APKBUILD new file mode 100644 index 0000000000..1db13a9ba9 --- /dev/null +++ b/community/perl-business-issn/APKBUILD @@ -0,0 +1,42 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-business-issn +_pkgreal=Business-ISSN +pkgver=1.001 +pkgrel=0 +pkgdesc="Perl extension for International Standard Serial Numbers" +url="http://search.cpan.org/dist/Business-ISSN/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +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 + + 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}') + make && make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="004a95c3a44b1c2915ec62cdee66673d Business-ISSN-1.001.tar.gz" +sha256sums="7c065feae85ae469aa7f17b30b3b6b2f9637b424e5863b627b62eeb2bbc77d7a Business-ISSN-1.001.tar.gz" +sha512sums="006be2fd553775a610d02c2e987ea491bd3a764c88d0756f2ed2a3055f6fe33f0bcc0b111c981b60f76195646280fae528211597f1229b2e687f197af07d4b36 Business-ISSN-1.001.tar.gz" |