[arch-commits] Commit in python-uhashring/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Oct 9 17:43:18 UTC 2018


    Date: Tuesday, October 9, 2018 @ 17:43:18
  Author: felixonmars
Revision: 391694

archrelease: copy trunk to community-any

Added:
  python-uhashring/repos/community-any/
  python-uhashring/repos/community-any/PKGBUILD
    (from rev 391693, python-uhashring/trunk/PKGBUILD)

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

Copied: python-uhashring/repos/community-any/PKGBUILD (from rev 391693, python-uhashring/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2018-10-09 17:43:18 UTC (rev 391694)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-uhashring
+pkgname=(python-uhashring python2-uhashring)
+pkgver=1.1
+pkgrel=1
+pkgdesc="Full featured consistent hashing python library compatible with ketama"
+url="https://github.com/ultrabug/uhashring"
+license=('BSD')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-memcached' 'python2-memcached')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/ultrabug/uhashring/archive/$pkgver.tar.gz")
+sha512sums=('4895ddc08e71d9c1ecb28c56fa4c4505cf361b5e92206f4a206682c37922074e48b17a2c09b297e2401f40ca6af0559d7e20f9c67ee8a75274b102ce4f4c9da6')
+
+build() {
+  cd uhashring-$pkgver
+  python setup.py build
+  python2 setup.py build
+}
+
+check() {
+  cd uhashring-$pkgver
+  python setup.py pytest
+  python2 setup.py pytest
+}
+
+package_python-uhashring() {
+  depends=('python')
+
+  cd uhashring-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-uhashring() {
+  depends=('python2')
+
+  cd uhashring-$pkgver
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list