summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Savannah2017-06-04 03:20:18 -0400
committerTim Savannah2017-06-04 03:20:18 -0400
commite26c0046fd24252c4a0255a162b9889a6016176e (patch)
treeb6cd8d083b75bd434295ffa3b50dfa9d8bbdcabc
downloadaur-e26c0046fd24252c4a0255a162b9889a6016176e.tar.gz
Add python-advancedhtmlparser - AdvancedHTMLParser for python3
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD24
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..42d0b185344
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = python-advancedhtmlparser
+ pkgdesc = Fast Indexed python HTML parser which builds a DOM node tree, providing common getElementsBy* functions for scraping, testing, modification, and formatting
+ pkgver = 7.2.0
+ pkgrel = 1
+ url = http://github.com/kata198/AdvancedHTMLParser
+ arch = any
+ license = LGPLv3
+ makedepends = python-setuptools
+ makedepends = python
+ depends = python-setuptools
+ depends = python
+ optdepends = python-queryablelist: Support for advanced "filter" functions
+ source = https://github.com/kata198/AdvancedHTMLParser/archive/7.2.0.tar.gz
+ sha512sums = e0525e03519bfaccf2ebef4c4394049fe09e1a566cbb91568f9d877cdd5395423db3c591b49009736f6bd4861207c78fc336cf0bd7e3608499a63b7c1d0249ba
+
+pkgname = python-advancedhtmlparser
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..24dd5d16b8b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Tim Savannah <kata198@gmail.com>
+
+pkgname=python-advancedhtmlparser
+pkgver=7.2.0
+pkgrel=1
+pkgdesc="Fast Indexed python HTML parser which builds a DOM node tree, providing common getElementsBy* functions for scraping, testing, modification, and formatting"
+arch=('any')
+license=('LGPLv3')
+url="http://github.com/kata198/AdvancedHTMLParser"
+makedepends=('python-setuptools' 'python')
+depends=('python-setuptools' 'python')
+optdepends=('python-queryablelist: Support for advanced "filter" functions')
+source=("https://github.com/kata198/AdvancedHTMLParser/archive/${pkgver}.tar.gz")
+sha512sums=('e0525e03519bfaccf2ebef4c4394049fe09e1a566cbb91568f9d877cdd5395423db3c591b49009736f6bd4861207c78fc336cf0bd7e3608499a63b7c1d0249ba')
+
+build() {
+ cd "$srcdir"/AdvancedHTMLParser-$pkgver
+ python setup.py build
+}
+
+package() {
+ cd AdvancedHTMLParser-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}