aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/perl-ffi-checklib/APKBUILD
blob: 65ef0113d3f573bd73da967784b35923398487b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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"