aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-html-form/APKBUILD
blob: 1b05275033bd80e4a2b2afa12471ec4318d46492 (plain) (blame)
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
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-html-form
_pkgreal=HTML-Form
pkgver=6.05
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-uri perl-html-parser perl-http-message"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/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="9c9c5adfcd2f7167f54156c430dbef9baa8c2aae4375e652bda9a04d48ae68c763db205e862070b97ea6cc34c3f8ddc56d82d02796b6f4b682e6707eefd00465  HTML-Form-6.05.tar.gz"