aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-namespace-clean/APKBUILD
blob: d471318e809a618bf5d8bc11451ae6d2b45c97b7 (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: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-namespace-clean
_pkgreal=namespace-clean
pkgver=0.27
pkgrel=0
pkgdesc="Keep imports and functions out of your namespace"
url="http://search.cpan.org/dist/namespace-clean/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-package-stash perl-sub-name perl-sub-identify perl-b-hooks-endofscope"
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RI/RIBASUSHI/$_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="cba97f39ef7e594bd8489b4fdcddb662  namespace-clean-0.27.tar.gz"
sha256sums="8a10a83c3e183dc78f9e7b7aa4d09b47c11fb4e7d3a33b9a12912fd22e31af9d  namespace-clean-0.27.tar.gz"
sha512sums="4422640656602e44c6d3675e55a0e699f8c0e07abbaf11f0b0905043f90e13bb95ee0eaa4c4a08c853296825dd8ef33c806e0a7c284a70448e35ac3354545744  namespace-clean-0.27.tar.gz"