summaryrefslogtreecommitdiff
path: root/main/perl-cps/APKBUILD
blob: 1fa82abf78db30e6718cb7f66582ceec70288f39 (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
42
43
44
45
46
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-cps
_pkgreal=CPS
pkgver=0.19
pkgrel=1
pkgdesc="manage flow of control in Continuation-Passing Style"
url="https://metacpan.org/release/CPS/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-future perl-sub-name"
cpanmakedepends="perl-test-identity perl-test-refcount perl-test-fatal"
depends="$cpandepends"
makedepends="$cpanmakedepends perl-dev perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	default_prepare

	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL installdirs=vendor
}

build() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	./Build
}

check() {
	cd "$builddir"
	./Build test
}

package() {
	cd "$_builddir"
	./Build install destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="58479ba56554c6028db34fccc3942eba9e6cd7bfd5a1ee90b540db6d3ed3ef3b61aee354829cde386bc2beef134ee057dd96a5fd1e074d1389f46c8c54a312b0  CPS-0.19.tar.gz"