summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgetzze2018-06-03 23:01:06 +0100
committergetzze2018-06-03 23:01:06 +0100
commit1522f8572a7c9cdb279424e9d17832cc127a7b96 (patch)
tree59d97906b12393cd24af7463e8e4f221ea92e120
downloadaur-1522f8572a7c9cdb279424e9d17832cc127a7b96.tar.gz
Initial commit version 1.0.2
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD34
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..58068f086cc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = python-pymemoize
+ pkgdesc = Simple Python cache and memoizing module
+ pkgver = 1.0.2
+ pkgrel = 1
+ url = https://github.com/EliotBerriot/PyMemoize
+ arch = any
+ license = BSD
+ makedepends = git
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ options = !emptydirs
+ source = git+https://github.com/EliotBerriot/PyMemoize#branch=django
+ sha256sums = SKIP
+
+pkgname = python-pymemoize
+ depends = python
+ optdepends = python-django
+ optdepends = python-redis
+
+pkgname = python2-pymemoize
+ depends = python2
+ optdepends = python2-django
+ optdepends = python2-redis
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2ea1583466d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: getzze <getzze at gmail dot com>
+
+pkgname=('python-pymemoize' 'python2-pymemoize')
+pkgver=1.0.2
+pkgrel=1
+pkgdesc="Simple Python cache and memoizing module"
+arch=(any)
+url="https://github.com/EliotBerriot/PyMemoize"
+license=('BSD')
+options=(!emptydirs)
+source=("git+https://github.com/EliotBerriot/PyMemoize#branch=django")
+sha256sums=('SKIP')
+makedepends=('git' 'python-setuptools' 'python2-setuptools')
+
+pkgver() {
+ cd "PyMemoize"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+package_python-pymemoize() {
+ depends=('python')
+ optdepends=('python-django' 'python-redis')
+ cd "$srcdir/PyMemoize"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-pymemoize() {
+ depends=('python2')
+ optdepends=('python2-django' 'python2-redis')
+ cd "$srcdir/PyMemoize"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+}