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

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sun Dec 25 16:55:23 UTC 2016


    Date: Sunday, December 25, 2016 @ 16:55:22
  Author: bpiotrowski
Revision: 201994

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 201993, python-repoze.lru/trunk/PKGBUILD)

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

Copied: python-repoze.lru/repos/community-staging-any/PKGBUILD (from rev 201993, python-repoze.lru/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 16:55:22 UTC (rev 201994)
@@ -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=6
+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