aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-scope-upper/APKBUILD
blob: a10eb51c899d2aca2cae44839cb792bc6e68c31b (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor:
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-scope-upper
_pkgreal=Scope-Upper
pkgver=0.30
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
}

sha512sums="ba766f6f257293d8ec7cca72bfd216a5e3d8b052ebf5a6d74626060c847e3f2d2247056ce96ef83f0a170b2db974a66ac22cf54c8fbb785ec9aba8d984163c0a  Scope-Upper-0.30.tar.gz"