summaryrefslogtreecommitdiffstats
path: root/testing/perl-autobox/APKBUILD
blob: 770f880a3f799cf41ec9d4cd4b192f258946ce23 (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.79
pkgrel=0
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="4718107ac4359e4300d913cc56b3e14b  autobox-2.79.tar.gz"
sha256sums="8acc8c4a69e1bbb05304d0832d483a07258597529072d869b5960193a2ab950f  autobox-2.79.tar.gz"
sha512sums="857adaf75e9e2b5053a88653ea5379e0e0a5f52e7c2af14af41c8bc9583cceb4e4557df72e61c1a429ac7a1093ea3c0bdb5bb9099cbb303d0494b669a6fc3110  autobox-2.79.tar.gz"