aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-scope-upper/APKBUILD
blob: de38ebef230594bb87e5e7ab7fc6f3bcc6e57355 (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:
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-scope-upper
_pkgreal=Scope-Upper
pkgver=0.29
pkgrel=0
pkgdesc="Act on upper scopes."
url="http://search.cpan.org/dist/Scope-Upper/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/V/VP/VPIT/$_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="e7336f45c6fb1182fe2402e68d438b41  Scope-Upper-0.29.tar.gz"
sha256sums="4b07360a243ce0ccaacfdfa98ae38ef2686aa908fcf4ef3d669105ac36759e0a  Scope-Upper-0.29.tar.gz"
sha512sums="1950337e71b1120087d8921ed82ee92ba402f022316ffc60411d84744c5528e63b902e4bd897f82ddb853c83050dda01aa0e01825538340bd3f8b6f595364434  Scope-Upper-0.29.tar.gz"