1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/community/perl-plack/APKBUILD

44 lines
1.6 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-plack
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Plack
pkgver=1.0048
pkgrel=0
pkgdesc="Perl Superglue for Web frameworks and Web Servers (PSGI toolkit)"
url="https://metacpan.org/release/Plack/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="
perl perl-file-sharedir perl-filesys-notify-simple perl-stream-buffered perl-uri
perl-devel-stacktrace-ashtml perl-test-tcp perl-try-tiny perl-apache-logformat-compiler
perl-hash-multivalue perl-http-message perl-cookie-baker perl-www-form-urlencoded
perl-http-entity-parser perl-http-headers-fast
"
makedepends="perl-file-sharedir-install"
checkdepends="
perl-test-requires perl-fcgi perl-mime-types perl-fcgi-procmanager perl-module-refresh
perl-cgi-emulate-psgi
"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/Plack-$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="52168240deaaf613a86a157bde426d22e1e857e0506605f0e7568aa05b968d236ed42843772d7dc187de8f9ebf0329999ac534c04bda8fa739173da45828a5e0 Plack-1.0048.tar.gz"