aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-module-metadata/APKBUILD
blob: 609a57becf75a23eccf9460bf26ecedb2f4a7f25 (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: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-module-metadata
_pkgreal=Module-Metadata
pkgver=1.000027
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
}

md5sums="a0bf9b900dfd49c57702de3ee3801d42  Module-Metadata-1.000027.tar.gz"
sha256sums="e2f7dcb48e826d9cb4c08ca8d7e1a1d4ceaa7725f1245eb30c71ecbd119132e7  Module-Metadata-1.000027.tar.gz"
sha512sums="4b71cf80a722803f664dd069b46b89cbe415bb2fd9ef81750d606ac7463c7d589256d853c4f0005fcd32e554d0cecb3724387e1ebc3b3b49d32ff516fa555c50  Module-Metadata-1.000027.tar.gz"