aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-extutils-installpaths/APKBUILD
blob: 2fd95ce25081704455ef95b068369eb5b7d76696 (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-extutils-installpaths
_pkgreal=ExtUtils-InstallPaths
pkgver=0.010
pkgrel=0
pkgdesc="Build.PL install path logic made easy"
url="http://search.cpan.org/dist/ExtUtils-InstallPaths/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-extutils-config"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/$_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="f0b00cc6c04653588a6298fa1f16c07f  ExtUtils-InstallPaths-0.010.tar.gz"
sha256sums="d14cbff118e467900c2c488b55b83ef697d6eb1b8f592c0521f1d82848bf2156  ExtUtils-InstallPaths-0.010.tar.gz"
sha512sums="3639e8e05b2d59d1a5c4548d74e51158ce6e6b2260d2958f5500b7bb2f64470b72b8b9690e3ec917ff6db8baf0a81038178336bccbc272116e16b520cac73f0f  ExtUtils-InstallPaths-0.010.tar.gz"