summaryrefslogtreecommitdiff
path: root/user/perl-html-formattext-withlinks/APKBUILD
blob: 472ccad5b1f779164324e76cd60df37fe06df578 (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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-html-formattext-withlinks
_pkgname=HTML-FormatText-WithLinks
pkgver=0.15
pkgrel=0
pkgdesc="Perl-based HTML-to-text converter with links as footnotes"
url="https://metacpan.org/release/HTML-FormatText-WithLinks"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-2.0-only"
depends="perl-html-formatter perl-html-tree perl-uri"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/ST/STRUAN/HTML-FormatText-WithLinks-$pkgver.tar.gz"
builddir="$srcdir/HTML-FormatText-WithLinks-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="cdec4ba94c3f9dfd4e9c8b03be0e24068b23b634499bce062e0b281b26ad3a0288c0d4cc35b4db62fd81ad5f0a0f9ce42a59478af10a81ca2f5901ab79cdf550  HTML-FormatText-WithLinks-0.15.tar.gz"