blob: b3c9d9f411bd84301108ff22d3035ea929c8b709 (
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
44
|
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-pathtools
_pkgreal=PathTools
pkgver=3.74
pkgrel=0
pkgdesc="The combined distribution for the File::Spec and Cwd modules"
url="http://search.cpan.org/dist/PathTools/"
arch="all"
license="GPL PerlArtistic"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/X/XS/XSAWYERX/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$builddir"
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
doc() {
default_doc
replaces="perl-doc"
}
sha512sums="3d0326b76711b06f3408a3f478164cd648b864147283abf05f8aa6de20c05bb4d57afc64107974a053b2cf5974f0a77f3a180542cd5a37f7c2d2a07bf7e3ae7a PathTools-3.74.tar.gz"
|