aports/main/perl-file-slurp-tiny/APKBUILD
2023-07-03 18:51:58 +02:00

36 lines
1.1 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-file-slurp-tiny
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=File-Slurp-Tiny
pkgver=0.004
pkgrel=4
pkgdesc="A simple, sane and efficient file slurper [DISCOURAGED]"
url="https://metacpan.org/release/File-Slurp-Tiny/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/L/LE/LEONT/File-Slurp-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
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="
916af1da5375ced4ebc00cb2b908e53b027e7b4fcad9069d5109eb2c0623faaa1d2d4fc8aeefb22861c7304ec913696cec85c280a82fd9aa7236c902427bc5cf File-Slurp-Tiny-0.004.tar.gz
"