aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-boolean/APKBUILD
blob: 8ec3004f02253b57dc1bf36debf56e5cf27c54be (plain) (blame)
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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-boolean
_pkgreal=boolean
pkgver=0.46
pkgrel=1
pkgdesc="Boolean support for Perl"
url="https://metacpan.org/release/boolean"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/I/IN/INGY/boolean-$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
}

check() {
	make test
}

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

md5sums="2a0d94fd6f5e01bac6b48536d3cd7197  boolean-0.46.tar.gz"
sha256sums="95c088085c3e83bf680fe6ce16d8264ec26310490f7d1680e416ea7a118f156a  boolean-0.46.tar.gz"
sha512sums="910653882f501cbf9420d775a79a000c62632a98643ac5e9f3d99765652e7c8c073f251bc36f0b69c9b259762bebeaeac18376e78494977d912da538939bb296  boolean-0.46.tar.gz"