aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-text-bibtex/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-07-12 15:17:00 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-07-12 15:18:17 +0000
commit3cb2721a14a5021f63172b569155a4999840c538 (patch)
treeedef9c6cfa9e0ea2d4e05e6895c991c88d03e7ce /testing/perl-text-bibtex/APKBUILD
parent52e66c1b18712e5244843b32e95c7fb9e9bd0c6a (diff)
downloadaports-3cb2721a14a5021f63172b569155a4999840c538.tar.bz2
aports-3cb2721a14a5021f63172b569155a4999840c538.tar.xz
testing/perl-text-bibtex: new aport
Diffstat (limited to 'testing/perl-text-bibtex/APKBUILD')
-rw-r--r--testing/perl-text-bibtex/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/perl-text-bibtex/APKBUILD b/testing/perl-text-bibtex/APKBUILD
new file mode 100644
index 000000000..691a25680
--- /dev/null
+++ b/testing/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=0
+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"