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

Felix Yan felixonmars at archlinux.org
Sat Jun 30 16:46:05 UTC 2018


    Date: Saturday, June 30, 2018 @ 16:46:04
  Author: felixonmars
Revision: 348491

archrelease: copy trunk to community-staging-any

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

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

Copied: python-monotonic/repos/community-staging-any/PKGBUILD (from rev 348489, python-monotonic/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 16:46:04 UTC (rev 348491)
@@ -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=2
+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