aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-autobox/APKBUILD
blob: 07ca082e1de43a27b3ad01e43499780259a6819a (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.83
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="7a4b2c4c644e6f02ccb1d964fabebde5  autobox-2.83.tar.gz"
sha256sums="3f83a33fa9566c859c786815d3790299a8e95f181a5866f9b810645bb41e89c4  autobox-2.83.tar.gz"
sha512sums="2c347ee61240ba7ba8fdf0bddebceab554c602ce673a524255a73ee7b53a9765f9679bd613f796f74e6588ebfd6beb877fa6f49720fa6da108f91ebb365b1dc6  autobox-2.83.tar.gz"