aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-pathtools/APKBUILD
blob: 5c1d2e0f1f3a76f4c9f7b8e05ddeea1931ff7074 (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
# 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.62
pkgrel=2
pkgdesc="The combined distribution for the File::Spec and Cwd modules"
url="http://search.cpan.org/dist/PathTools/"
arch="all"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_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 && 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"
}

md5sums="bfe148a89064078cf162504c30a4c41a  PathTools-3.62.tar.gz"
sha256sums="36350e12f58871437ba03391f80a506e447e3c6630cc37d0625bc25ff1c7b4d2  PathTools-3.62.tar.gz"
sha512sums="c2c39bf57286d11131d027d97e4486698a4ffbb917a8b0fd7466a8c469c009fee1f70bfe4f51d5b6feef4d57de0c9be3145aa3a35625a5f26bbe7788c0ba66aa  PathTools-3.62.tar.gz"