summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAniket Pradhan2019-08-08 19:06:21 +0530
committerAniket Pradhan2019-08-08 19:06:21 +0530
commitc6c365c21706058dc4d5133c4cb42d46ecf43a99 (patch)
treed7976b74e8cd8fd31f3367be889fc8b5fdf57885
parentd74d9c8b0f1950f1928515be350708f659cd3842 (diff)
downloadaur-c6c365c21706058dc4d5133c4cb42d46ecf43a99.tar.gz
Upgrade to v0.5.0
Also split the packages for python and python2
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD47
2 files changed, 31 insertions, 40 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cb1ee7ee372..8d13b5f9162 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,18 @@
pkgbase = python-requests-cache
- pkgdesc = Persistent cache for requests library
- pkgver = 0.4.13
+ pkgdesc = Transparent persistent cache for http://python-requests.org/ library ⛺ https://pypi.org/project/requests-cache/
+ pkgver = 0.5.0
pkgrel = 1
url = https://github.com/reclosedev/requests-cache
- arch = any
+ arch = x86_64
license = BSD
- makedepends = python
- makedepends = python2
+ makedepends = git
makedepends = python-setuptools
- makedepends = python2-setuptools
- makedepends = python-requests
- makedepends = python2-requests
- source = requests-cache-0.4.13.tar.gz::https://github.com/reclosedev/requests-cache/archive/v0.4.13.tar.gz
- sha512sums = 54d814c9c4da1b1fa6f4ec124faee7e74e7ca52bc90ae7c948f19e9cb7657fe2b41f5de6c5fafe259526312d82dc5efd81ad01a741a66baf12ea2a358334f912
-
-pkgname = python-requests-cache
depends = python
+ depends = python-requests
+ provides = python-requests-cache
+ conflicts = python2-requests-cache
+ source = requests-cache-0.5.0.tar.gz::https://github.com/reclosedev/requests-cache/archive/v0.5.0.tar.gz
+ sha256sums = 7846f008cd09ee1d38b5285bf098f9f0246cd1019d8c519d23184c1616342217
-pkgname = python2-requests-cache
- depends = python2
+pkgname = python-requests-cache
diff --git a/PKGBUILD b/PKGBUILD
index 39784edaae9..f8ed85e1867 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,35 +1,30 @@
-# Maintainer: Christian Rebischke <chris.rebischke[at]archlinux[dot]org>
+# Maintainer: Aniket Pradhan <aniket17133[at]iiitd[dot]ac[dot]in>
+# Contributer: Roman Haritonov <reclosedev[at]gmail[dot]com>
-pkgbase=python-requests-cache
-_pyname=requests-cache
-pkgname=('python-requests-cache' 'python2-requests-cache')
-makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools'
- 'python-requests' 'python2-requests')
-pkgver=0.4.13
+_pkgname="requests-cache"
+pkgname="python-requests-cache"
+pkgver=0.5.0
pkgrel=1
-pkgdesc="Persistent cache for requests library"
-arch=('any')
+pkgdesc="Transparent persistent cache for http://python-requests.org/ library ⛺ https://pypi.org/project/requests-cache/"
+arch=("x86_64")
url="https://github.com/reclosedev/requests-cache"
-license=('BSD')
-source=("${_pyname}-${pkgver}.tar.gz::https://github.com/reclosedev/${_pyname}/archive/v${pkgver}.tar.gz")
-sha512sums=('54d814c9c4da1b1fa6f4ec124faee7e74e7ca52bc90ae7c948f19e9cb7657fe2b41f5de6c5fafe259526312d82dc5efd81ad01a741a66baf12ea2a358334f912')
-
-package_python-requests-cache() {
- depends=('python')
- cd "${srcdir}/${_pyname}-${pkgver}"
- python setup.py install -O1 --root="${pkgdir}"
- install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+license=("BSD")
+depends=("python" "python-requests")
+makedepends=("git" "python-setuptools")
+provides=("python-requests-cache")
+conflicts=("python2-requests-cache")
+source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/reclosedev/requests-cache/archive/v${pkgver}.tar.gz")
+sha256sums=('7846f008cd09ee1d38b5285bf098f9f0246cd1019d8c519d23184c1616342217')
+build() {
+ cd "$srcdir/$_pkgname-${pkgver}"
+ python setup.py build
}
-package_python2-requests-cache() {
- depends=('python2')
- cd "${srcdir}/${_pyname}-${pkgver}"
- python2 setup.py install -O1 --root="${pkgdir}"
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
-
}
-
-# vim:set et sw=2 ts=2 tw=79: