diff options
Diffstat (limited to 'unmaintained/perl-ffi-checklib/APKBUILD')
-rw-r--r-- | unmaintained/perl-ffi-checklib/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/unmaintained/perl-ffi-checklib/APKBUILD b/unmaintained/perl-ffi-checklib/APKBUILD new file mode 100644 index 0000000000..65ef0113d3 --- /dev/null +++ b/unmaintained/perl-ffi-checklib/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: +# Maintainer: +pkgname=perl-ffi-checklib +_pkgreal=FFI-CheckLib +pkgver=0.14 +pkgrel=0 +pkgdesc="Check that a library is available for FFI" +url="http://search.cpan.org/dist/FFI-CheckLib/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/P/PL/PLICEASE/$_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="4b13b4f090a19a6dfccdc9f2cd4221c7 FFI-CheckLib-0.14.tar.gz" +sha256sums="03dd7474e427d22e056b2af9c595e5fc661b4f4ca010127fb285b00cf7aa616f FFI-CheckLib-0.14.tar.gz" +sha512sums="de675d055c6883f53fd82892c4e2d03eeafa51802f98516ca09512b4b5c88de91d967d3d9f91d979ddce031c40584da67dffe286567ca5a9231f97a2e30cd483 FFI-CheckLib-0.14.tar.gz" |