summaryrefslogtreecommitdiff
path: root/user/perl-html-tree/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 02:44:48 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 02:44:48 +0000
commitfc5b3cda972651480eb6ff366b322825fcda349c (patch)
tree2c5cb56dc71fec2fbf3476da070160c24a9f6200 /user/perl-html-tree/APKBUILD
parent6bb08d8085b2369c09938dabdc5c876f7f38129d (diff)
downloadpackages-fc5b3cda972651480eb6ff366b322825fcda349c.tar.gz
packages-fc5b3cda972651480eb6ff366b322825fcda349c.tar.bz2
packages-fc5b3cda972651480eb6ff366b322825fcda349c.tar.xz
packages-fc5b3cda972651480eb6ff366b322825fcda349c.zip
user/perl-html-tree: new package
Diffstat (limited to 'user/perl-html-tree/APKBUILD')
-rw-r--r--user/perl-html-tree/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/user/perl-html-tree/APKBUILD b/user/perl-html-tree/APKBUILD
new file mode 100644
index 000000000..d83f4dcf5
--- /dev/null
+++ b/user/perl-html-tree/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-html-tree
+_pkgname=HTML-Tree
+pkgver=5.07
+pkgrel=0
+pkgdesc="DOM tree structure parser for Perl"
+url="https://metacpan.org/release/HTML-Tree"
+arch="noarch"
+license="Artistic-1.0-Perl OR GPL-2.0-only"
+depends="perl-html-parser"
+checkdepends="perl-test-fatal"
+makedepends="perl-dev perl-module-build"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/K/KE/KENTNL/HTML-Tree-$pkgver.tar.gz"
+builddir="$srcdir/HTML-Tree-$pkgver"
+
+build() {
+ cd "$builddir"
+ perl Build.PL --destdir="$pkgdir" --prefix="/usr" --installdirs=vendor
+ ./Build
+}
+
+check() {
+ cd "$builddir"
+ ./Build test
+}
+
+package() {
+ cd "$builddir"
+ ./Build install destdir="$pkgdir"
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="a1faaf547d7db323388d5f6b289ab96887de5a80add55aefd380e4b540948514550a86785bdccf0776dfff38085b6bd3e98228f96231264217adcfc2f132c5de HTML-Tree-5.07.tar.gz"