blob: 09521142fed481091ff424c7df4d8e0dc95affec (
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
|
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-path-tiny
_pkgreal=Path-Tiny
pkgver=0.098
pkgrel=0
pkgdesc="File path utility"
url="http://search.cpan.org/dist/Path-Tiny/"
arch="noarch"
license="apache_2_0"
cpandepends=""
cpanmakedepends=" perl-test-mockrandom perl-test-failwarnings"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare || return 1
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="dd5c11cf3ba2c46726c47334686e2332 Path-Tiny-0.098.tar.gz"
sha256sums="68f95c21fba6b03039e3dd8831d18feb701e537ff9764f07ca93e08aa8aa6f72 Path-Tiny-0.098.tar.gz"
sha512sums="6a92eb98cbf2ea0c9a4cc1fc4f376de2bfbbf8d306be19d3db15bf8903256723149df62ffb82e87e8ce908ec5a0c11701c222c76dcfb97ecdb8023e6a77a2a53 Path-Tiny-0.098.tar.gz"
|