[arch-commits] Commit in python-parsel/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed Mar 27 11:27:41 UTC 2019


    Date: Wednesday, March 27, 2019 @ 11:27:40
  Author: felixonmars
Revision: 444197

upgpkg: python-parsel 1.5.1-2

remove python2 sibling

Modified:
  python-parsel/trunk/PKGBUILD

----------+
 PKGBUILD |   38 ++++++++------------------------------
 1 file changed, 8 insertions(+), 30 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-27 11:26:59 UTC (rev 444196)
+++ PKGBUILD	2019-03-27 11:27:40 UTC (rev 444197)
@@ -1,51 +1,29 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-parsel
-pkgname=('python-parsel' 'python2-parsel')
+pkgname=python-parsel
 pkgver=1.5.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Parsel is a library to extract data from HTML and XML using XPath and CSS selectors"
 arch=('any')
 license=('BSD')
 url="https://github.com/scrapy/parsel"
-makedepends=('python-cssselect' 'python2-cssselect' 'python-lxml' 'python2-lxml'
-             'python-pytest-runner' 'python2-pytest-runner' 'python-six' 'python2-six'
-             'python-w3lib' 'python2-w3lib' 'python2-functools32')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/scrapy/parsel/archive/v$pkgver.tar.gz")
+depends=('python-cssselect' 'python-lxml' 'python-six' 'python-w3lib')
+makedepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/scrapy/parsel/archive/v$pkgver.tar.gz")
 sha512sums=('fe6de66c3f43e1ecdeae4239cacca42f3082214b698b16c7f56e4fb924cd70826fe0d7a69517174c71cd249c2b21cb9fdbf9091aafcfed6a3745a70dc37b7964')
 
-prepare() {
-  cp -a parsel-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/parsel-$pkgver
+  cd parsel-$pkgver
   python setup.py build
-
-  cd "$srcdir"/parsel-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/parsel-$pkgver
+  cd parsel-$pkgver
   python setup.py pytest
-
-  cd "$srcdir"/parsel-$pkgver-py2
-  python2 setup.py pytest
 }
 
-package_python-parsel() {
-  depends=('python-cssselect' 'python-lxml' 'python-six' 'python-w3lib')
-
+package() {
   cd parsel-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-parsel() {
-  depends=('python2-cssselect' 'python2-lxml' 'python2-six' 'python2-w3lib' 'python2-functools32')
-
-  cd parsel-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}


More information about the arch-commits mailing list