summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/perl-html-formattext-withlinks/APKBUILD34
1 files changed, 34 insertions, 0 deletions
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 <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"