Skip to content
Snippets Groups Projects
Commit 164533d4 authored by Wen Heping's avatar Wen Heping Committed by Celeste
Browse files

testing/perl-cgi-struct: new aport

parent e85fcea2
No related branches found
No related tags found
1 merge request!81322testing/perl-cgi-struct: new aport
# Contributor: Wen Heping <wenheping2000@hotmail.com>
# Maintainer: Wen Heping <wenheping2000@hotmail.com>
pkgname=perl-cgi-struct
pkgver=1.21
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=CGI-Struct
pkgdesc="Build structures from CGI data"
url="https://metacpan.org/release/CGI-Struct/"
arch="noarch"
license="BSD-2-Clause"
depends="perl"
makedepends="perl-test-deep"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/F/FU/FULLERMD/CGI-Struct-$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="
3d202c4b7284789c1352a2625c05d8a004ac410e02268bc8125e8ab568ce3d4111249e4799e3536caf35a1b6c85d76669cb714b2e582bae942e2c8b220e42dcd CGI-Struct-1.21.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment