summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorUniversebenzene2019-01-11 01:48:18 +0800
committerUniversebenzene2019-01-11 01:48:18 +0800
commit184bc948f241bf87c52abbf123a6054c4d85d139 (patch)
tree151ec359f91fcdfe2502e5b4cd0fb09045bffdc4
downloadaur-184bc948f241bf87c52abbf123a6054c4d85d139.tar.gz
Initial import 1.7
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD58
2 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d0f43e3893a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+# Generated by mksrcinfo v8
+# Thu Jan 10 17:45:57 UTC 2019
+pkgbase = python-soupsieve
+ pkgdesc = A modern CSS selector implementation for BeautifulSoup
+ pkgver = 1.7
+ pkgrel = 1
+ url = https://facelessuser.github.io/soupsieve/
+ arch = i686
+ arch = x86_64
+ license = MIT
+ checkdepends = python-pytest
+ checkdepends = python2-pytest
+ checkdepends = python2-beautifulsoup4
+ checkdepends = python-beautifulsoup4
+ checkdepends = python2-html5lib
+ checkdepends = python-html5lib
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ source = https://files.pythonhosted.org/packages/source/s/soupsieve/soupsieve-1.7.tar.gz
+ md5sums = 2b5a9f36b55ab1b0c079e07e9926da82
+
+pkgname = python-soupsieve
+ depends = python>=3.4
+ depends = python-beautifulsoup4
+
+pkgname = python2-soupsieve
+ depends = python2>=2.7
+ depends = python2-beautifulsoup4
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..561b020239b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,58 @@
+# Maintainer: Astro Benzene <universebenzene at sina dot com>
+pkgbase=python-soupsieve
+_pyname=${pkgbase#python-}
+pkgname=("python-${_pyname}" "python2-${_pyname}")
+pkgver=1.7
+pkgrel=1
+pkgdesc="A modern CSS selector implementation for BeautifulSoup"
+arch=('i686' 'x86_64')
+url="https://facelessuser.github.io/soupsieve/"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest' 'python2-beautifulsoup4' 'python-beautifulsoup4' 'python2-html5lib' 'python-html5lib')
+source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
+md5sums=('2b5a9f36b55ab1b0c079e07e9926da82')
+
+prepare() {
+ cd ${srcdir}/${_pyname}-${pkgver}
+
+ cp -a ${srcdir}/${_pyname}-${pkgver}{,-py2}
+}
+
+build() {
+ msg "Building Python2"
+ cd ${srcdir}/${_pyname}-${pkgver}-py2
+ python2 setup.py build
+
+ msg "Building Python3"
+ cd ${srcdir}/${_pyname}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ msg "Checking Python3"
+ cd ${srcdir}/${_pyname}-${pkgver}
+ python setup.py test
+
+ msg "Checking Python2"
+ cd ${srcdir}/${_pyname}-${pkgver}-py2
+ python2 setup.py test
+}
+
+package_python2-soupsieve() {
+ depends=('python2>=2.7' 'python2-beautifulsoup4')
+ cd ${srcdir}/${_pyname}-${pkgver}-py2
+
+ install -D -m644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -D -m644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ python2 setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
+}
+
+package_python-soupsieve() {
+ depends=('python>=3.4' 'python-beautifulsoup4')
+ cd ${srcdir}/${_pyname}-${pkgver}
+
+ install -D -m644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -D -m644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
+}