aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-constant-defer/APKBUILD
blob: fb0d5128b074918f1a2bc0b6400af0d5e7b30163 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-constant-defer
_pkgreal=constant-defer
pkgver=6
pkgrel=1
pkgdesc="Constant subs with deferred value calculation."
url="https://metacpan.org/release/constant-defer"
arch="noarch"
license="open_source"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/K/KR/KRYDE/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make && make test
}

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

md5sums="6af9912fa420340e9e171ac81f450492  constant-defer-6.tar.gz"
sha256sums="7b21263198ca22686efff3ae987a240be423dd2160afdeb29fe716d032986ffa  constant-defer-6.tar.gz"
sha512sums="902916d32ed11737d34f8764af171ba1731de807ffbfd62e342f83bef05ab0a34ddaeec3f2c9b41814877b0568fc3e09fbf26e7ce2cd4a3dd6eeba75e6755b5f  constant-defer-6.tar.gz"