APKBUILD 1.16 KB
Newer Older
1
2
3
4
5
6
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-package-anon
_pkgreal=Package-Anon
pkgver=0.05
7
pkgrel=6
8
9
10
pkgdesc="Anonymous packages"
url="http://search.cpan.org/dist/Package-Anon/"
arch="all"
11
12
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpanmakedepends="perl-sub-exporter"
13
14
15
16
17
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AU/AUGGY/$_pkgreal-$pkgver.tar.gz"

18
builddir="$srcdir/$_pkgreal-$pkgver"
19
20

prepare() {
21
22
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
23
24
25
26
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
27
28
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
29
30
31
32
	make && make test
}

package() {
33
34
	cd "$builddir"
	make DESTDIR="$pkgdir" install
35
36
37
38
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="73adf4eb8348ad51e678d7d777f7c13599eaaa53e776a35df768ee1afcf781801c980c786c658addad80ae5fe852fefb3600722ea7b02d928653543aa28d9d51  Package-Anon-0.05.tar.gz"