diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 14:43:30 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-25 14:43:30 +0000 |
commit | e2c8e9abb4aeec6c51bf0132901c0e2047c0f520 (patch) | |
tree | 9cf038f0b482bdacb8ecbb6255ba428dd6730dea /community/perl-text-bibtex | |
parent | cd5cf93476a721b3593bb2ad9adf49bb41d147d2 (diff) | |
download | aports-e2c8e9abb4aeec6c51bf0132901c0e2047c0f520.tar.bz2 aports-e2c8e9abb4aeec6c51bf0132901c0e2047c0f520.tar.xz |
community/perl-text-bibtex: moved from testing
Diffstat (limited to 'community/perl-text-bibtex')
-rw-r--r-- | community/perl-text-bibtex/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/community/perl-text-bibtex/APKBUILD b/community/perl-text-bibtex/APKBUILD new file mode 100644 index 0000000000..5092509ef6 --- /dev/null +++ b/community/perl-text-bibtex/APKBUILD @@ -0,0 +1,45 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-text-bibtex +_pkgreal=Text-BibTeX +pkgver=0.76 +pkgrel=1 +pkgdesc="Perl module for Text-BibTeX" +url="http://search.cpan.org/dist/Text-BibTeX/" +arch="all" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="perl-module-build perl-config-autoconf perl-extutils-libbuilder perl-scalar-list-utils" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/A/AM/AMBS/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + cd "$builddir" + if [ -e Build.PL ]; then + perl Build.PL installdirs=vendor || return 1 + else + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + fi +} + +build() { + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + ./Build && ./Build test +} + +package() { + cd "$builddir" + ./Build install destdir="$pkgdir" || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="02a8df203a8e75922c8c2b5924bff741 Text-BibTeX-0.76.tar.gz" +sha256sums="79d6517f7561c155157ea7b60e5e4ead01dc56f612dd9cf2b81f35f444023be7 Text-BibTeX-0.76.tar.gz" +sha512sums="a223f7ecc6c08b17076b515c0eb47f70d78951857f6a2367568c5af5c436eba595de8e3c9acec9c0bc8ca758739ae21a11f616c0c5ebedb5d1858c2d719085e5 Text-BibTeX-0.76.tar.gz" |