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

Felix Yan felixonmars at archlinux.org
Sat Dec 24 16:37:14 UTC 2016


    Date: Saturday, December 24, 2016 @ 16:37:13
  Author: felixonmars
Revision: 201563

archrelease: copy trunk to community-staging-any

Added:
  python-binary-memcached/repos/community-staging-any/
  python-binary-memcached/repos/community-staging-any/PKGBUILD
    (from rev 201562, python-binary-memcached/trunk/PKGBUILD)

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

Copied: python-binary-memcached/repos/community-staging-any/PKGBUILD (from rev 201562, python-binary-memcached/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 16:37:13 UTC (rev 201563)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-binary-memcached
+pkgname=('python-binary-memcached' 'python2-binary-memcached')
+pkgver=0.25.0
+_commit=4b51d7b2a4cb41c918fd2932f67d59fe9fea5ea5
+pkgrel=2
+arch=('any')
+pkgdesc='A pure python module to access memcached via its binary protocol with SASL auth support'
+url='https://github.com/jaysonsantos/python-binary-memcached'
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('memcached' 'python-pytest-runner' 'python2-pytest-runner' 'python2-mock')
+source=("git+https://github.com/jaysonsantos/python-binary-memcached.git#commit=$_commit")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a python-binary-memcached{,-py2}
+}
+
+build() {
+  cd "$srcdir"/python-binary-memcached
+  python setup.py build
+
+  cd "$srcdir"/python-binary-memcached-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/python-binary-memcached
+  python setup.py ptr
+
+  cd "$srcdir"/python-binary-memcached-py2
+  python2 setup.py ptr
+}
+
+package_python-binary-memcached() {
+  depends=('python-six')
+
+  cd python-binary-memcached
+  python setup.py install --root "$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-binary-memcached() {
+  depends=('python2-six')
+
+  cd python-binary-memcached-py2
+  python2 setup.py install --root "$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list