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

2020-11-11 Thread Evangelos Foutras via arch-commits
Date: Wednesday, November 11, 2020 @ 10:31:43
  Author: foutrelis
Revision: 750060

upgpkg: python-simplebayes 1.5.7-6: Python 3.9 rebuild

Modified:
  python-simplebayes/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-11-11 10:31:38 UTC (rev 750059)
+++ PKGBUILD2020-11-11 10:31:43 UTC (rev 750060)
@@ -3,7 +3,7 @@
 _pkgname=simplebayes
 pkgname=python-simplebayes
 pkgver=1.5.7
-pkgrel=5
+pkgrel=6
 pkgdesc="Memory-based, optional-persistence naïve bayesian text classifier 
Python library"
 arch=(any)
 url="https://github.com/hickeroar/simplebayes;


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

2019-10-31 Thread Felix Yan via arch-commits
Date: Thursday, October 31, 2019 @ 18:04:06
  Author: felixonmars
Revision: 521519

Python 3.8 rebuild

Modified:
  python-simplebayes/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-10-31 18:03:55 UTC (rev 521518)
+++ PKGBUILD2019-10-31 18:04:06 UTC (rev 521519)
@@ -3,7 +3,7 @@
 _pkgname=simplebayes
 pkgname=python-simplebayes
 pkgver=1.5.7
-pkgrel=3
+pkgrel=4
 pkgdesc="Memory-based, optional-persistence naïve bayesian text classifier 
Python library"
 arch=(any)
 url="https://github.com/hickeroar/simplebayes;


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

2019-10-25 Thread Evangelos Foutras via arch-commits
Date: Friday, October 25, 2019 @ 15:15:50
  Author: foutrelis
Revision: 518950

Python 3.8 rebuild

Modified:
  python-simplebayes/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-10-25 15:15:49 UTC (rev 518949)
+++ PKGBUILD2019-10-25 15:15:50 UTC (rev 518950)
@@ -3,7 +3,7 @@
 _pkgname=simplebayes
 pkgname=python-simplebayes
 pkgver=1.5.7
-pkgrel=2
+pkgrel=3
 pkgdesc="Memory-based, optional-persistence naïve bayesian text classifier 
Python library"
 arch=(any)
 url="https://github.com/hickeroar/simplebayes;


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

2019-03-06 Thread Balló György via arch-commits
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
===
--- PKGBUILD2019-03-07 00:18:03 UTC (rev 437969)
+++ PKGBUILD2019-03-07 00:23:49 UTC (rev 437970)
@@ -1,51 +1,31 @@
 # Maintainer: Balló György 
 
-_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"
 }