aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-path-class/APKBUILD
blob: 841fe8692d8bdd7a9aa24208e157cf1723540064 (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 <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-path-class
_pkgreal=Path-Class
pkgver=0.32
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"
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="c3f3bacb17cbefd4f5b47159445415f8  Path-Class-0.32.tar.gz"
sha256sums="320ba296e134170eaabb42ff3929f82419bedd4de98bf44babfaccef17d3ecb8  Path-Class-0.32.tar.gz"
sha512sums="e943f4ef8069718dbd41025f2eae2bb827e903e98eb7f9d906f70373d88e8dfeb4aeef80c49773afdfba026dc39e673cb2323cc439d3def2007c86e1fbefcc05  Path-Class-0.32.tar.gz"