aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-path-tiny/APKBUILD
blob: 26cd2d93eda11efed7f928b71198c2df908fe8db (plain) (blame)
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
# 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.116
pkgrel=0
pkgdesc="File path utility"
url="https://metacpan.org/release/Path-Tiny"
arch="noarch"
license="Apache-2.0"
depends="perl"
makedepends="perl-dev perl-test-mockrandom perl-test-failwarnings"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Path-Tiny-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="f365af6a698452121f3cf784bd1990a33da088e6f777d8ed412fa12c95f9cb4a109dead98d3549fd916373ee38e4b9c9a09f7fdf42d7e6e4f32bfddc950da6fa  Path-Tiny-0.116.tar.gz"