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

David Runge dvzrv at archlinux.org
Thu Mar 5 18:23:02 UTC 2020


    Date: Thursday, March 5, 2020 @ 18:23:02
  Author: dvzrv
Revision: 590812

upgpkg: python-langdetect 1.0.8-1: Upgrading to 1.0.8. Updating maintainer info. Running pytest in check(). Minor cleanups.

Modified:
  python-langdetect/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-05 18:08:42 UTC (rev 590811)
+++ PKGBUILD	2020-03-05 18:23:02 UTC (rev 590812)
@@ -1,8 +1,9 @@
-# Maintainer: David Runge <dave at sleepmap.de>
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
 _name=langdetect
 pkgname=python-langdetect
-pkgver=1.0.7
-pkgrel=5
+pkgver=1.0.8
+pkgrel=1
 pkgdesc="Language detection library ported from Google's language-detection"
 arch=('any')
 url="https://github.com/Mimino666/langdetect"
@@ -9,16 +10,26 @@
 license=('Apache')
 depends=('python-six')
 makedepends=('python-setuptools')
-source=("https://files.pythonhosted.org/packages/source/l/${_name}/${_name}-${pkgver}.zip")
-sha512sums=('7740bc8e5ea581bed69de9744a934f3e9c72910175933acb266bf25b0cb8797da6041b3d35e7c5d622a037b4c9e3d264828c2ba31bd2866fa7c36cf189e4767a')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/l/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('beade4e33abd25364ead64c30b3631615526effa7788c50e0b2bfac454e7b69a33742780f838ddf5df5292dadf0449ea8f3a4197214d84a164cbecee76020a4d')
 
+prepare() {
+  mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
+}
+
 build() {
-  cd "${_name}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
   python setup.py build
 }
 
-package_python-langdetect() {
-  cd "${_name}-${pkgver}"
+check() {
+  cd "${pkgname}-${pkgver}"
+  pytest -v
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
   python setup.py install --skip-build \
     --optimize=1 \
     --prefix=/usr \



More information about the arch-commits mailing list