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

Balló György bgyorgy at archlinux.org
Thu Mar 7 00:23:50 UTC 2019


    Date: Thursday, March 7, 2019 @ 00:23:49
  Author: bgyorgy
Revision: 437970

upgpkg: python-simplebayes 1.5.7-2

Drop python2

Modified:
  python-simplebayes/trunk/PKGBUILD

----------+
 PKGBUILD |   38 +++++++++-----------------------------
 1 file changed, 9 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-07 00:18:03 UTC (rev 437969)
+++ PKGBUILD	2019-03-07 00:23:49 UTC (rev 437970)
@@ -1,51 +1,31 @@
 # Maintainer: Balló György <ballogyor+arch at gmail dot com>
 
-_pkgbase=simplebayes
-pkgbase=python-simplebayes
-pkgname=(python2-simplebayes python-simplebayes)
+_pkgname=simplebayes
+pkgname=python-simplebayes
 pkgver=1.5.7
-pkgrel=1
+pkgrel=2
 pkgdesc="Memory-based, optional-persistence naïve bayesian text classifier Python library"
 arch=(any)
 url="https://github.com/hickeroar/simplebayes"
 license=(MIT)
-depends=(python python2)
-makedepends=(git python-setuptools python2-setuptools)
+depends=(python)
+makedepends=(git python-setuptools)
 _commit=b8da72c50d20b6f8c0df2c2f39620715b08ddd32  # tags/1.5.7
 source=("git+https://github.com/hickeroar/simplebayes#commit=$_commit")
 sha256sums=('SKIP')
 
 pkgver() {
-  cd $_pkgbase
+  cd $_pkgname
   git describe --tags | sed 's/-/+/g'
 }
 
-prepare() {
-  cp -a $_pkgbase{,-py2}
-}
-
 build() {
-  # Building Python2
-  cd $_pkgbase-py2
-  python2 setup.py build
-
-  # Building Python3
-  cd ../$_pkgbase
+  cd $_pkgname
   python3 setup.py build
 }
 
-package_python2-simplebayes() {
-  depends=(python2)
-
-  cd $_pkgbase-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-package_python-simplebayes() {
-  depends=(python)
-
-  cd $_pkgbase
+package() {
+  cd $_pkgname
   python3 setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }



More information about the arch-commits mailing list