summaryrefslogtreecommitdiffstats
path: root/main/perl-boolean/APKBUILD
blob: be3ae622e95a37c413a25c4fc4ec973cc1a9a43f (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: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-boolean
_pkgreal=boolean
pkgver=0.30
pkgrel=0
pkgdesc="Boolean support for Perl"
url="http://search.cpan.org/dist/boolean/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/I/IN/INGY/$_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="f4f23302481e82402048a91a8fa2e078  boolean-0.30.tar.gz"
sha256sums="f46e7a6121d5728ef2ce285a82d1dde94f6dfa0b846a612db75b1dcd37b9fc7f  boolean-0.30.tar.gz"
sha512sums="6ed9b40ddddeb6be401a7b79962569c4f443d8e9bac0282ad62e1cfebc897970cc8c35ea6c41187a158449211695bb88ac52d0edc46ae834f368336ac7fa5d3d  boolean-0.30.tar.gz"