blob: e51ec7846f48384cdda021f17e99dcedbc32315c (
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 <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-autobox
_pkgreal=autobox
pkgver=2.84
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="d2c2945a9605058366a5173975bab4db autobox-2.84.tar.gz"
sha256sums="98dd2754f226684a72ccba3a95956b7eaff2871568e4dd9746e6fb6daae0b96b autobox-2.84.tar.gz"
sha512sums="d2115d04080f146e95e8cb09fc77e3fe7dce53b75d4940633eaf92a88ca61b2d55b9dae67f7934d918c6befaf43743c17be183ac2423a19950548b076c0cfccf autobox-2.84.tar.gz"
|