[arch-commits] Commit in python-monotonic/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:44:45 UTC 2020


    Date: Monday, November 9, 2020 @ 15:44:45
  Author: felixonmars
Revision: 747119

archrelease: copy trunk to community-staging-any

Added:
  python-monotonic/repos/community-staging-any/
  python-monotonic/repos/community-staging-any/PKGBUILD
    (from rev 747118, python-monotonic/trunk/PKGBUILD)

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

Copied: python-monotonic/repos/community-staging-any/PKGBUILD (from rev 747118, python-monotonic/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:44:45 UTC (rev 747119)
@@ -0,0 +1,29 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Kevin Houdebert <kevin at qwazerty.eu>
+# Contributor: Erhan SAHIN <erhan at ssahin.net>
+
+_pkgname=monotonic
+pkgname=('python-monotonic' 'python2-monotonic')
+pkgver=1.5
+pkgrel=5
+pkgdesc="An implementation of time.monotonic() for Python 2."
+url="https://pypi.python.org/pypi/monotonic"
+license=('Apache')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("$_pkgname-$pkgver.tar.gz::https://github.com/atdt/monotonic/archive/$pkgver.tar.gz")
+sha512sums=('acee69916a82059a027e7bcc03c58deb5ce773a1aff45938699cf09c3ab49b7827c2c01b431593ed76ae49009728c3d52923267eccfc7e15390f8730351a39e2')
+
+package_python-monotonic() {
+  depends=('python')
+
+  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