[arch-commits] Commit in python-repoze.lru/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Wed Jun 10 14:38:59 UTC 2015


    Date: Wednesday, June 10, 2015 @ 16:38:58
  Author: fyan
Revision: 135134

upgpkg: python-repoze.lru 0.6-4

- add python 3 counterpart
- add missing LICENSE file

Modified:
  python-repoze.lru/trunk/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++--------
 1 file changed, 28 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-06-10 13:03:24 UTC (rev 135133)
+++ PKGBUILD	2015-06-10 14:38:58 UTC (rev 135134)
@@ -1,33 +1,53 @@
 # $Id$
-# Maintainer: Felix Yan <felixonmars at gmail.com>
+# 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=python2-repoze.lru
+pkgname=(python-repoze.lru python2-repoze.lru)
 pkgver=0.6
-pkgrel=3
+pkgrel=4
 pkgdesc="A tiny LRU cache implementation and decorator"
 arch=("any")
 url="https://pypi.python.org/pypi/repoze.lru"
 license=("custom:BSD")
-depends=("python2")
-makedepends=('python2-setuptools')
-checkdepends=('python2-nose')
+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
 }
 
-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() {
-  cd "${srcdir}/repoze.lru-${pkgver}/"
+  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