mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 14:56:46 +02:00
47 lines
1.3 KiB
Text
47 lines
1.3 KiB
Text
# 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.68
|
|
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="
|
|
675dee1381aa15cdede45661d1a93b3b6a0ed8fe42bd669317266537a4ac39747f17c4bf02d8b5568d10216b6d1f5f8230102a36957a0abb2aabe0af47b2c965 CGI-4.68.tar.gz
|
|
"
|