aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-html-form/APKBUILD
blob: bce90b4bb7bf58e0e86b93d155ee657fd8a0b839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-html-form
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=HTML-Form
pkgver=6.11
pkgrel=0
pkgdesc="Class that represents an HTML form element"
url="https://metacpan.org/release/HTML-Form/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-uri perl-html-parser perl-http-message"
checkdepends="perl-http-message perl-test-warnings"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SI/SIMBABQUE/HTML-Form-$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="
9ac4eba3d723fccbd9a686959288e1c9479f80c4fd8fd8d85739d7c11b402af813a883cd341ebac8593efe3b6d0ea9f6dbd7fec6b1966c15bccc1b9a2ce0dfeb  HTML-Form-6.11.tar.gz
"