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

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


    Date: Wednesday, March 27, 2019 @ 11:26:27
  Author: felixonmars
Revision: 444193

upgpkg: python-parsedatetime 2.4-3

remove python2 sibling

Modified:
  python-parsedatetime/trunk/PKGBUILD

----------+
 PKGBUILD |   41 +++++++++++------------------------------
 1 file changed, 11 insertions(+), 30 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-27 11:24:01 UTC (rev 444192)
+++ PKGBUILD	2019-03-27 11:26:27 UTC (rev 444193)
@@ -5,49 +5,30 @@
 # Contributor: Limao Luo <luolimao+AUR at gmail.com>
 # Contributor: Jeremy Sands <cto at jeremysands.com>
 
-pkgbase=python-parsedatetime
-pkgname=('python-parsedatetime' 'python2-parsedatetime')
-pkgver=3.0
-pkgrel=1
+pkgname=python-parsedatetime
+pkgver=2.4
+pkgrel=3
 pkgdesc="Parse human-readable date/time strings."
 arch=('any')
 license=('Apache')
 url='http://github.com/bear/parsedatetime'
-makedepends=('python-future' 'python2-future' 'python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/bear/parsedatetime/archive/v$pkgver.tar.gz")
-sha512sums=('9512b80b2ec100d9790ee26564bad5760a29ea0bfa4c1e807a39b496e17712761fc01664cd5be892e55157c9a909d96466f3e68bb2929f001ab70317482ef955')
+depends=('python-future')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/bear/parsedatetime/archive/v$pkgver.tar.gz")
+sha512sums=('0fd8bfa3411476a20d8874b44036bc162735fb7865d39ca98b0a608daec39daac47100314279dbf66229ec333821492744f7505315d955f58216fdaa75cbf046')
 
-prepare() {
-  cp -a parsedatetime-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/parsedatetime-$pkgver
+  cd parsedatetime-$pkgver
   python setup.py build
-
-  cd "$srcdir"/parsedatetime-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/parsedatetime-$pkgver
+  cd parsedatetime-$pkgver
   python setup.py pytest
-
-  cd "$srcdir"/parsedatetime-$pkgver-py2
-  python2 setup.py pytest
 }
 
-package_python-parsedatetime() {
-  depends=('python-future')
-
+package() {
   cd parsedatetime-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
-
-package_python2-parsedatetime() {
-  depends=('python2-future')
-
-  cd parsedatetime-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}


More information about the arch-commits mailing list