aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/perl-ffi-checklib/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/perl-ffi-checklib/APKBUILD b/community/perl-ffi-checklib/APKBUILD
new file mode 100644
index 0000000000..1f40434add
--- /dev/null
+++ b/community/perl-ffi-checklib/APKBUILD
@@ -0,0 +1,36 @@
+# Automatically generated by apkbuild-cpan, template 3
+# Contributor: Timothy Legge <timlegge@gmail.com>
+# Maintainer: Timothy Legge <timlegge@gmail.com>
+pkgname=perl-ffi-checklib
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
+_pkgreal=FFI-CheckLib
+pkgver=0.26
+pkgrel=0
+pkgdesc="Check that a library is available for FFI"
+url="https://metacpan.org/release/FFI-CheckLib/"
+arch="noarch"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl"
+makedepends="perl-dev"
+checkdepends="perl-test2-suite"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/FFI-CheckLib-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="5949aa0b7dfbf7401c1d916f003ab78762944b188ee66b769036656cc8f37ac12f523dbffdf6a24750b4ca64fd148efc91c6e36159a5c79c0781397060e8d558 FFI-CheckLib-0.26.tar.gz"