Date: Tuesday, June 23, 2020 @ 08:43:04 Author: felixonmars Revision: 650954
archrelease: copy trunk to community-any Added: python-pyquery/repos/community-any/PKGBUILD (from rev 650953, python-pyquery/trunk/PKGBUILD) Deleted: python-pyquery/repos/community-any/PKGBUILD ----------+ PKGBUILD | 94 ++++++++++++++++++++++--------------------------------------- 1 file changed, 34 insertions(+), 60 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-06-23 08:42:48 UTC (rev 650953) +++ PKGBUILD 2020-06-23 08:43:04 UTC (rev 650954) @@ -1,60 +0,0 @@ -# Maintainer : Felix Yan <felixonm...@archlinux.org> -# Contributor: speps <speps at aur dot archlinux dot org> -# Contributor: Arnau Sanchez <tokland {at} gmail {dot} com> - -pkgbase=python-pyquery -pkgname=('python-pyquery' 'python2-pyquery') -pkgver=1.4.1 -pkgrel=2 -pkgdesc="A jquery-like library for python." -arch=('any') -url="https://github.com/gawel/pyquery/" -license=('BSD') -makedepends=('python-setuptools' 'python2-setuptools' 'python-lxml' 'python2-lxml' - 'python-cssselect' 'python2-cssselect') -checkdepends=('python-requests' 'python2-requests' 'python-webob' 'python2-webob' 'python-nose' - 'python2-nose' 'python-coverage' 'python2-coverage' 'python-webtest' 'python2-webtest' - 'python2-beautifulsoup4' 'python2-restkit') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/gawel/pyquery/archive/$pkgver.tar.gz") -sha512sums=('25fe43155ecfcafb34863cee0a4690f51f23690b866a9e985f605f9995093e6698dbe867e6a98978f6f389735666fe17328d60c59904456ee1b35ff450eae463') - -prepare() { - cp -a pyquery-$pkgver{,-py2} -} - -build() { - cd "$srcdir"/pyquery-$pkgver - python setup.py build - - cd "$srcdir"/pyquery-$pkgver-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/pyquery-$pkgver - nosetests3 - - cd "$srcdir"/pyquery-$pkgver-py2 - nosetests2 -} - -package_python-pyquery() { - depends=('python-lxml' 'python-cssselect') - optdepends=('python-webob: query wsgi app') - - cd pyquery-$pkgver - python setup.py install -O1 --root="$pkgdir" - - install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} - -package_python2-pyquery() { - depends=('python2-lxml' 'python2-cssselect') - optdepends=('python2-webob: to query wsgi app' - 'python2-restkit: to get url directly with a HostProxy app') - - cd pyquery-$pkgver-py2 - python2 setup.py install -O1 --root="$pkgdir" - - install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} Copied: python-pyquery/repos/community-any/PKGBUILD (from rev 650953, python-pyquery/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-06-23 08:43:04 UTC (rev 650954) @@ -0,0 +1,34 @@ +# Maintainer : Felix Yan <felixonm...@archlinux.org> +# Contributor: speps <speps at aur dot archlinux dot org> +# Contributor: Arnau Sanchez <tokland {at} gmail {dot} com> + +pkgname=python-pyquery +pkgver=1.4.1 +pkgrel=3 +pkgdesc="A jquery-like library for python." +arch=('any') +url="https://github.com/gawel/pyquery/" +license=('BSD') +depends=('python-lxml' 'python-cssselect') +optdepends=('python-webob: query wsgi app') +makedepends=('python-setuptools') +checkdepends=('python-requests' 'python-webob' 'python-nose' 'python-webtest') +source=("https://github.com/gawel/pyquery/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('25fe43155ecfcafb34863cee0a4690f51f23690b866a9e985f605f9995093e6698dbe867e6a98978f6f389735666fe17328d60c59904456ee1b35ff450eae463') + +build() { + cd pyquery-$pkgver + python setup.py build +} + +check() { + cd pyquery-$pkgver + nosetests3 +} + +package() { + cd pyquery-$pkgver + python setup.py install -O1 --root="$pkgdir" + + install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ +}