blob: 366e300c016fceeda4ba3ee71243ef55e43e6f6d (
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
|
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-module-install
_pkgreal=Module-Install
pkgver=1.17
pkgrel=0
pkgdesc="Perl module for Module-Install"
url="http://search.cpan.org/dist/Module-Install/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="perl-file-remove perl-module-build perl-module-scandeps perl-yaml-tiny"
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"
if [ -e Build.PL ]; then
perl Build.PL installdirs=vendor || return 1
else
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
fi
}
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="39da11e45b32f79f66823015d3be4153 Module-Install-1.17.tar.gz"
sha256sums="bc1365cf447fc8e09ef002f68e0a2ac3ace071ebf412c94a2cd08ddae6e17065 Module-Install-1.17.tar.gz"
sha512sums="e7f71ece28518d490aa9f038f24e88c81722239bb065a56e0414013646940d7326838579347d030a30b6e3a3d7810f7432d0c2a27560147bc4545e6884c27f91 Module-Install-1.17.tar.gz"
|