summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoreolianoe2017-10-22 13:27:18 +0200
committereolianoe2017-10-22 13:27:18 +0200
commit8ed6fed38b9ec38ae0c1ee0bb9c5312c78260a25 (patch)
tree2b0423a3eacddf0f69070edbf8355130ebedb3e9
downloadaur-8ed6fed38b9ec38ae0c1ee0bb9c5312c78260a25.tar.gz
initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore6
-rw-r--r--PKGBUILD46
3 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..79c7cb806d0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Sun Oct 22 11:18:44 UTC 2017
+pkgbase = python-django-pylibmc
+ pkgdesc = Memcached cache backend for Django using pylibmc
+ pkgver = 0.6.1
+ pkgrel = 1
+ url = https://github.com/django-pylibmc/django-pylibmc/
+ arch = any
+ license = BSD
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ source = django-pylibmc-0.6.1.tar.gz::https://github.com/django-pylibmc/django-pylibmc//archive/v0.6.1.tar.gz
+ sha256sums = e0c37aaad086e8e9ec987ea35a75107b0375d924c24136e5f56995a916c54b1a
+
+pkgname = python-django-pylibmc
+ depends = python-pylibmc>=1.4.1
+
+pkgname = python2-django-pylibmc
+ depends = python2-pylibmc>=1.4.1
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..abc06d15960
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+*.gz
+*.xz
+*.zip
+/pkg
+/src
+*.log*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dae008e38c7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: eolianoe <eolianoe [at] gmail [DoT] com>
+# Co-maintainer: joffrey <joffrey.darcq@sfr.fr>
+
+_pyname='django-pylibmc'
+pkgbase=python-${_pyname}
+pkgname=("python-${_pyname}" "python2-${_pyname}")
+pkgver=0.6.1
+pkgrel=1
+pkgdesc='Memcached cache backend for Django using pylibmc'
+arch=('any')
+url="https://github.com/${_pyname}/${_pyname}/"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("${_pyname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+sha256sums=('e0c37aaad086e8e9ec987ea35a75107b0375d924c24136e5f56995a916c54b1a')
+
+prepare() {
+ cd "${srcdir}"
+ cp -a ${_pyname}-${pkgver}{,-py2}
+}
+
+build() {
+ cd "${srcdir}"/${_pyname}-${pkgver}
+ python setup.py build
+
+ cd "${srcdir}"/${_pyname}-${pkgver}-py2
+ python2 setup.py build
+}
+
+package_python-django-pylibmc() {
+ depends=('python-pylibmc>=1.4.1')
+
+ cd "${srcdir}/${_pyname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 "${srcdir}/${_pyname}-${pkgver}/LICENSE" \
+ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-django-pylibmc() {
+ depends=('python2-pylibmc>=1.4.1')
+
+ cd "${srcdir}/${_pyname}-${pkgver}-py2"
+ python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 "${srcdir}/${_pyname}-${pkgver}-py2/LICENSE" \
+ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}