[arch-commits] Commit in python-repoze.lru/repos (2 files)

Felix Yan fyan at archlinux.org
Sat Sep 19 12:55:24 UTC 2015


    Date: Saturday, September 19, 2015 @ 14:55:24
  Author: fyan
Revision: 140791

archrelease: copy trunk to community-staging-any

Added:
  python-repoze.lru/repos/community-staging-any/
  python-repoze.lru/repos/community-staging-any/PKGBUILD
    (from rev 140790, python-repoze.lru/trunk/PKGBUILD)

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

Copied: python-repoze.lru/repos/community-staging-any/PKGBUILD (from rev 140790, python-repoze.lru/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 12:55:24 UTC (rev 140791)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: DasIch <dasdasich at googlemail.com>
+# Contributor: James Bulmer <nekinie at gmail.com>
+
+pkgbase=python-repoze.lru
+pkgname=(python-repoze.lru python2-repoze.lru)
+pkgver=0.6
+pkgrel=5
+pkgdesc="A tiny LRU cache implementation and decorator"
+arch=("any")
+url="https://pypi.python.org/pypi/repoze.lru"
+license=("custom:BSD")
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose')
+source=("https://pypi.python.org/packages/source/r/repoze.lru/repoze.lru-${pkgver}.tar.gz")
+md5sums=("2c3b64b17a8e18b405f55d46173e14dd")
+
+prepare() {
+  cp -a repoze.lru-${pkgver}{,-py2}
+}
+
+build() {
+  cd "${srcdir}/repoze.lru-${pkgver}/"
+  python setup.py build
+
+  cd "${srcdir}/repoze.lru-${pkgver}-py2/"
+  python2 setup.py build
+}
+
+check() {
+  cd "${srcdir}/repoze.lru-${pkgver}/"
+  python setup.py test
+
+  cd "${srcdir}/repoze.lru-${pkgver}-py2/"
+  python2 setup.py test
+}
+
+package_python-repoze.lru() {
+  depends=("python")
+
+  cd "${srcdir}/repoze.lru-${pkgver}/"
+  python setup.py install --root="${pkgdir}/" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-repoze.lru() {
+  depends=("python2")
+
+  cd "${srcdir}/repoze.lru-${pkgver}-py2/"
+  python2 setup.py install --root="${pkgdir}/" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list