aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-boolean/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/perl-boolean/APKBUILD')
-rw-r--r--main/perl-boolean/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-boolean/APKBUILD b/main/perl-boolean/APKBUILD
new file mode 100644
index 0000000000..be3ae622e9
--- /dev/null
+++ b/main/perl-boolean/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=perl-boolean
+_pkgreal=boolean
+pkgver=0.30
+pkgrel=0
+pkgdesc="Boolean support for Perl"
+url="http://search.cpan.org/dist/boolean/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/I/IN/INGY/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+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}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="f4f23302481e82402048a91a8fa2e078 boolean-0.30.tar.gz"
+sha256sums="f46e7a6121d5728ef2ce285a82d1dde94f6dfa0b846a612db75b1dcd37b9fc7f boolean-0.30.tar.gz"
+sha512sums="6ed9b40ddddeb6be401a7b79962569c4f443d8e9bac0282ad62e1cfebc897970cc8c35ea6c41187a158449211695bb88ac52d0edc46ae834f368336ac7fa5d3d boolean-0.30.tar.gz"