summaryrefslogtreecommitdiffstats
path: root/testing/perl-eval-closure/APKBUILD
blob: f2d1b61f7befdbce60176c49f6ec9c215d4165af (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-eval-closure
_pkgreal=Eval-Closure
pkgver=0.08
pkgrel=0
pkgdesc="safely and cleanly create closures via string eval"
url="http://search.cpan.org/dist/Eval-Closure/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-try-tiny perl-sub-exporter perl-test-fatal perl-test-requires"
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DO/DOY/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	make && make test
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="c2af8abc363fc9a039731be9ecf2985c  Eval-Closure-0.08.tar.gz"
sha256sums="738ce424d68ce1ac93c0b1539d6740ac8fff81fdd06ef7e4c8b022296922a407  Eval-Closure-0.08.tar.gz"
sha512sums="0e6edd318f52f9f324dfddb003b0825c748d688fecb041e61a8aa1645d3bfcdfc6968b782ecd7e3b0892d4db3160048a2319cbf0dc16086bf6005ffec24250bf  Eval-Closure-0.08.tar.gz"