aports/main/perl-path-tiny/APKBUILD
Celeste bc016ee802 main/perl-path-tiny: upgrade to 0.146
also, upgrade to apkbuild-cpan template 4
2024-05-11 20:25:54 +00:00

39 lines
1.1 KiB
Text

# Automatically generated by apkbuild-cpan, template 4
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-path-tiny
pkgver=0.146
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Path-Tiny
pkgdesc="File path utility"
url="https://metacpan.org/release/Path-Tiny/"
arch="noarch"
license="Apache-2.0"
depends="perl"
checkdepends="perl-test-failwarnings perl-test-mockrandom"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Path-Tiny-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
INSTALLDIRS=vendor \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
8939e7a42a2539db98825f2755399fb5eb38aac9e6ad17ec71d51edad99ddb4d5d891ef0119b57a79e4fa84c43faedff2a05c705a1e6d731f77d49798d6dc94e Path-Tiny-0.146.tar.gz
"