summaryrefslogtreecommitdiffstats
path: root/testing/perl-autobox/APKBUILD
blob: 6398ad98aa8350dc57c75d9c25847a2c0b5c484a (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: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-autobox
_pkgreal=autobox
pkgver=2.82
pkgrel=1
pkgdesc="call methods on native types"
url="http://search.cpan.org/dist/autobox/"
arch="all"
license="GPL PerlArtistic"
cpandepends="perl-scope-guard"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev perl-test-pod perl-scope-guard $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/C/CH/CHOCOLATE/$_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="fb9ad0bf723614e1add278bedc965ee6  autobox-2.82.tar.gz"
sha256sums="37cc7489c1579931a10b7bbc6854868ecdb873c6b0e666f267a440e6d1470070  autobox-2.82.tar.gz"
sha512sums="7d913fb22cbeaa117b0fa79e65e99f74fe3837e3eb6dcbb1432dde19d924060288d75471304b83d6f9b39a7a69a0bd7d7f7001809e7dfe0de986d45fa7d2bd3a  autobox-2.82.tar.gz"