mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
# Contributor: Wen Heping <wenheping2000@hotmail.com>
|
|
# Maintainer: Wen Heping <wenheping2000@hotmail.com>
|
|
pkgname=perl-cgi-simple
|
|
pkgver=1.281
|
|
pkgrel=0
|
|
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
|
_pkgreal=CGI-Simple
|
|
pkgdesc="A Simple totally OO CGI interface that is CGI.pm compliant"
|
|
url="https://metacpan.org/release/CGI-Simple/"
|
|
arch="noarch"
|
|
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
|
|
depends="perl"
|
|
checkdepends="perl-test-exception perl-test-nowarnings"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/M/MA/MANWAR/CGI-Simple-$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="
|
|
08e72d63a39e5e1d1774c0a5c89d7b0f2797fbf9f12f706638176f5dfa31645e3803688f86c805d088845b67bfb39873d1d36de1d7b9fba566268d9cff0b4cfd CGI-Simple-1.281.tar.gz
|
|
"
|