aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-path-class/APKBUILD
blob: 831337b178926b470ed7a63b4e06c830ab82e519 (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.35
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="575b60a5c5e22e259c1df62a59fdfe85  Path-Class-0.35.tar.gz"
sha256sums="9226b305196127d02529303dbd6c37802baafe736f0245cb089241ed25922aee  Path-Class-0.35.tar.gz"
sha512sums="cfbd27bf4756bade7a9abd081eda79058c0225d4a803a34a2bfe2a6c2eef954908b33843f352c562599edc420ca7a0063e9f7fd9fdd1d608ecea230e585287e2  Path-Class-0.35.tar.gz"