aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-function-parameters/APKBUILD
blob: 6abd90d98595d06e80d910429887bc129429532c (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-function-parameters
_pkgreal=Function-Parameters
pkgver=1.0705
pkgrel=0
pkgdesc="subroutine definitions with parameter lists"
url="http://search.cpan.org/dist/Function-Parameters/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="  perl-dir-self perl-test-fatal "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MA/MAUKE/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare || return 1

	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="fbaa61e7acb8e85e63a84b8b40ca2b5b  Function-Parameters-1.0705.tar.gz"
sha256sums="5dd904dc6511df6901260392ea98d39ebd178e1df195456357e91217229e8e03  Function-Parameters-1.0705.tar.gz"
sha512sums="b58905730b2fa81bf607249d86c68a47d71b810aaca91a497974211bfe094b84c8cc6841eeee0a44e925cb8d632c8f7850365ac0bd194f37c1add081f19fa772  Function-Parameters-1.0705.tar.gz"