mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-23 14:31:57 +01:00
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
# Automatically generated by apkbuild-cpan, template 4
|
|
# Contributor: Timo Teräs <timo.teras@iki.fi>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=perl-cgi
|
|
pkgver=4.67
|
|
pkgrel=0
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=CGI
|
|
pkgdesc="Handle Common Gateway Interface requests and responses"
|
|
url="https://metacpan.org/release/CGI/"
|
|
arch="noarch"
|
|
license="Artistic-2.0"
|
|
depends="perl perl-html-parser perl-uri"
|
|
checkdepends="perl-test-nowarnings perl-test-warn"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/L/LE/LEEJO/CGI-$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
|
|
}
|
|
|
|
doc() {
|
|
local file; find "$pkgdir" -name "*.pod" | while read -r file; do
|
|
amove "${file#"$pkgdir"}"
|
|
done
|
|
default_doc
|
|
}
|
|
|
|
sha512sums="
|
|
dc9f0b2c50e24eeaf3068f65aef7e0e5582ce8e1b004e79b89bf4d6067223d82b33bba64900d1eab5c78f318c151499ef6842ec8d32ed354dfbf3e43d2cb1d93 CGI-4.67.tar.gz
|
|
"
|