From 7f269e026da39a78af5158cc0fba1d7dff2cdf07 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 18 Nov 2018 02:49:11 +0000 Subject: user/perl-html-formattext-withlinks: new package --- user/perl-html-formattext-withlinks/APKBUILD | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 user/perl-html-formattext-withlinks/APKBUILD (limited to 'user/perl-html-formattext-withlinks') diff --git a/user/perl-html-formattext-withlinks/APKBUILD b/user/perl-html-formattext-withlinks/APKBUILD new file mode 100644 index 000000000..472ccad5b --- /dev/null +++ b/user/perl-html-formattext-withlinks/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: A. Wilcox +# Maintainer: Adélie Perl Team +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" -- cgit v1.2.3-70-g09d2