[arch-commits] Commit in python-html5-parser/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Jul 23 15:49:48 UTC 2018
Date: Monday, July 23, 2018 @ 15:49:48
Author: felixonmars
Revision: 363072
archrelease: copy trunk to community-staging-x86_64
Added:
python-html5-parser/repos/community-staging-x86_64/
python-html5-parser/repos/community-staging-x86_64/PKGBUILD
(from rev 363071, python-html5-parser/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-html5-parser/repos/community-staging-x86_64/PKGBUILD (from rev 363071, python-html5-parser/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-07-23 15:49:48 UTC (rev 363072)
@@ -0,0 +1,49 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=html5-parser
+pkgbase='python-html5-parser'
+pkgname=('python-html5-parser' 'python2-html5-parser')
+pkgver=0.4.5
+pkgrel=3
+pkgdesc="Fast C based HTML 5 parsing for python"
+arch=('x86_64')
+url="https://github.com/kovidgoyal/${_pkgname}"
+license=('Apache')
+checkdepends=('python-beautifulsoup4' 'python2-beautifulsoup4')
+makedepends=('python-chardet' 'python-lxml' 'python-setuptools'
+ 'python2-chardet' 'python2-lxml' 'python2-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.asc})
+sha256sums=('a903ef8b93b51788a6d1604b3833303e9f2f8db488306ee4241436d2f518bd06'
+ 'SKIP')
+validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C')
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ python setup.py build
+ python2 setup.py build
+}
+
+check() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ python setup.py test
+ python2 setup.py test
+}
+
+package_python-html5-parser() {
+ depends=('python-chardet' 'python-lxml')
+ optdepends=('python-beautifulsoup4: to use the soup treebuilder')
+
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
+
+package_python2-html5-parser() {
+ depends=('python2-chardet' 'python2-lxml')
+ optdepends=('python2-beautifulsoup4: to use the soup treebuilder')
+
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
More information about the arch-commits
mailing list