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

Antonio Rojas arojas at archlinux.org
Wed Dec 18 21:54:17 UTC 2019


    Date: Wednesday, December 18, 2019 @ 21:54:17
  Author: arojas
Revision: 538236

Drop python2

Modified:
  python-whoosh/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++-------------------------
 1 file changed, 5 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-18 21:48:24 UTC (rev 538235)
+++ PKGBUILD	2019-12-18 21:54:17 UTC (rev 538236)
@@ -2,8 +2,7 @@
 # Contributor: Samuel Littley <aur at toastwaffle.com>
 # Contributor: rnons <remotenonsense at gmail dot com>
 
-pkgbase=python-whoosh
-pkgname=(python-whoosh python2-whoosh)
+pkgname=python-whoosh
 pkgver=2.7.4
 pkgrel=5
 pkgdesc="Fast, pure-Python full text indexing, search, and spell checking library"
@@ -10,43 +9,24 @@
 arch=('any')
 url="https://bitbucket.org/mchaput/whoosh/wiki/Home"
 license=("BSD")
-makedepends=('python-setuptools' 'python2-setuptools' 'mercurial')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+depends=('python')
+makedepends=('python-setuptools' 'mercurial')
+checkdepends=('python-pytest-runner')
 source=("hg+https://bitbucket.org/mchaput/whoosh#tag=$pkgver")
 md5sums=('SKIP')
 
-prepare() {
-  cp -a whoosh{,-py2}
-}
-
 build() {
   cd "$srcdir"/whoosh
   python setup.py build
-
-  cd "$srcdir"/whoosh-py2
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/whoosh
   python setup.py ptr || warning "Tests failed"
-
-  cd "$srcdir"/whoosh-py2
-  python2 setup.py ptr || warning "Tests failed"
 }
 
-package_python-whoosh() {
-  depends=('python')
-
+package() {
   cd whoosh
   python setup.py install -O1 --root="$pkgdir"
   install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
 }
-
-package_python2-whoosh() {
-  depends=('python2')
-
-  cd whoosh-py2
-  python2 setup.py install -O1 --root="$pkgdir"
-  install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-}



More information about the arch-commits mailing list