summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoffrey2020-02-23 14:47:53 +0000
committerJoffrey2020-02-23 14:47:53 +0000
commit2daac56efbb0384bb89a33993ab6d13f09c9130f (patch)
tree192d679d2cdbcce15c2bd66c1636f85c569ea7ca
parentc64f6a0dc124d670c1ba1a7cddfcca3a1124f8d4 (diff)
downloadaur-2daac56efbb0384bb89a33993ab6d13f09c9130f.tar.gz
Remove Python 2 support
-rw-r--r--.SRCINFO10
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD44
3 files changed, 12 insertions, 43 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 81bb56a9a0e..fd4b5d64565 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,17 +2,13 @@ pkgbase = python-django-pylibmc
pkgdesc = Memcached cache backend for Django using pylibmc
pkgver = 0.6.1
pkgrel = 2
- url = https://github.com/django-pylibmc/django-pylibmc/
+ 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
+ depends = python-pylibmc
+ source = python-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
index abc06d15960..7b4db42c16c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,4 +3,3 @@
*.zip
/pkg
/src
-*.log*
diff --git a/PKGBUILD b/PKGBUILD
index 644e44abdbc..16561f82f78 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,46 +1,20 @@
# 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}")
+pkgname='python-django-pylibmc'
pkgver=0.6.1
pkgrel=2
pkgdesc='Memcached cache backend for Django using pylibmc'
arch=('any')
-url="https://github.com/${_pyname}/${_pyname}/"
+url='https://github.com/django-pylibmc/django-pylibmc'
license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=("${_pyname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+depends=('python-pylibmc')
+makedepends=('python-setuptools')
+source=("$pkgname-$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"
+package() {
+ cd "$srcdir/django-pylibmc-$pkgver"
+ install -Dm644 './LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ python './setup.py' install --root="$pkgdir" --optimize=1
}