aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-path-class/APKBUILD
blob: 571f5b0c6326346ac046b2a77b95bee9ab3f31d1 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-path-class
_pkgreal=Path-Class
pkgver=0.36
pkgrel=0
pkgdesc="Cross-platform path specification manipulation"
url="http://search.cpan.org/dist/Path-Class/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends perl-module-build"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	perl Build.PL installdirs=vendor || return 1
}

build() {
	cd "$_builddir"
		export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build && ./Build test
}

package() {
	cd "$_builddir"
	./Build install destdir="$pkgdir" || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="3e15307faf0702fb916409f594552b94  Path-Class-0.36.tar.gz"
sha256sums="45e6f51329a31b3f52810eec70f2ff54e3faea8893f07bdf95028adb71dcbdf9  Path-Class-0.36.tar.gz"
sha512sums="17ab96c897537a5964efecc3d4883fedc048145f4980d3959cf501a7646f2f7837614da9e379411f7ecb1f8de1bf23615ee57555cc437878470865b3fabc4c2d  Path-Class-0.36.tar.gz"