blob: 95a92b1dd518174e94b0095f37d0a73fd95e9011 (
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
43
44
45
|
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-module-metadata
_pkgreal=Module-Metadata
pkgver=1.000033
pkgrel=0
pkgdesc="Gather package and POD information from perl module files"
url="http://search.cpan.org/dist/Module-Metadata/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=" "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_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
}
doc() {
default_doc
replaces="perl-doc"
}
md5sums="9b024260c96a722423d3992e85768a67 Module-Metadata-1.000033.tar.gz"
sha256sums="bc96cc7949b52e2dac1595e806102640760917cfcd7497c7a023192156f3ff8e Module-Metadata-1.000033.tar.gz"
sha512sums="77c5cd4cd130cbcf329e91afecae4bcfa78e776fa1b4e6398a382ea9c80c7ba39b2fdcd16649a2bb65dc8ea904839961667dcb7bf0005c1a61a1aa0578b49c17 Module-Metadata-1.000033.tar.gz"
|