aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-html-tidy5/APKBUILD
blob: ae86d7bc8e7b514c507bd7846c16ebf75749d537 (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-tidy5
_pkgreal=HTML-Tidy5
pkgver=1.06
pkgrel=0
pkgdesc="HTML validation in a Perl object"
url="https://metacpan.org/release/HTML-Tidy5/"
arch="all"
license="Artistic-2.0"
makedepends="perl-dev tidyhtml-dev"
checkdepends="perl-test-exception"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PETDANCE/HTML-Tidy5-$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="5ce7da76e9fb0fb8ddbab048d0886bf0bd31d382da8d29b94a06a0871ad14b80db48a49f4c1886beea774e4d0f6529c13b0d3da2c52e29505416393ff0e5ce0a  HTML-Tidy5-1.06.tar.gz"