aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-ffi-checklib
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2020-03-21 02:06:04 +0000
committerRasmus Thomsen <oss@cogitri.dev>2020-03-21 20:23:41 +0000
commit9e85d49bcdaca31580d46155af96f89af6fddbfa (patch)
tree1cae7135e547d416fd29f07640291d35423389ed /community/perl-ffi-checklib
parentbe6477f30f978847459ae61e10b32f30b370b6ee (diff)
downloadaports-9e85d49bcdaca31580d46155af96f89af6fddbfa.tar.bz2
aports-9e85d49bcdaca31580d46155af96f89af6fddbfa.tar.xz
community/perl-ffi-checklib: new aport
Diffstat (limited to 'community/perl-ffi-checklib')
-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"