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

Jelle van der Waa jelle at archlinux.org
Sun Mar 14 20:11:18 UTC 2021


    Date: Sunday, March 14, 2021 @ 20:11:17
  Author: jelle
Revision: 891293

Drop python2-monotonic

Modified:
  python-monotonic/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-03-14 20:11:07 UTC (rev 891292)
+++ PKGBUILD	2021-03-14 20:11:17 UTC (rev 891293)
@@ -3,27 +3,19 @@
 # Contributor: Erhan SAHIN <erhan at ssahin.net>
 
 _pkgname=monotonic
-pkgname=('python-monotonic' 'python2-monotonic')
+pkgname=python-monotonic
 pkgver=1.5
-pkgrel=6
-pkgdesc="An implementation of time.monotonic() for Python 2."
+pkgrel=7
+pkgdesc="An implementation of time.monotonic() for Python"
 url="https://pypi.python.org/pypi/monotonic"
 license=('Apache')
 arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
 source=("$_pkgname-$pkgver.tar.gz::https://github.com/atdt/monotonic/archive/$pkgver.tar.gz")
 sha512sums=('acee69916a82059a027e7bcc03c58deb5ce773a1aff45938699cf09c3ab49b7827c2c01b431593ed76ae49009728c3d52923267eccfc7e15390f8730351a39e2')
 
-package_python-monotonic() {
-  depends=('python')
-
+package() {
   cd "$srcdir/$_pkgname-$pkgver"
   python setup.py install --root="$pkgdir" --optimize=1
 }
-
-package_python2-monotonic() {
-  depends=('python2')
-
-  cd "$srcdir/$_pkgname-$pkgver"
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}



More information about the arch-commits mailing list