diff options
author | Britney Fransen <brfransen@gmail.com> | 2017-12-09 14:34:12 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2017-12-09 14:34:12 (GMT) |
commit | f06d8e1bedfcf6d424a4736d43f366d95fb33690 (patch) | |
tree | a78baa8ac9914820a0c470c391772bcdb9e17b4d /abs/core/python_modules/python-requests-cache/PKGBUILD | |
parent | ada13c3f17134c5885f686509d128080450efa1b (diff) | |
parent | e4b0dec19f02e6d8e995b19a22110cac26f07ac4 (diff) | |
download | linhes_pkgbuild-f06d8e1bedfcf6d424a4736d43f366d95fb33690.zip linhes_pkgbuild-f06d8e1bedfcf6d424a4736d43f366d95fb33690.tar.gz linhes_pkgbuild-f06d8e1bedfcf6d424a4736d43f366d95fb33690.tar.bz2 |
Merge branch 'testing'
Diffstat (limited to 'abs/core/python_modules/python-requests-cache/PKGBUILD')
-rw-r--r-- | abs/core/python_modules/python-requests-cache/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-requests-cache/PKGBUILD b/abs/core/python_modules/python-requests-cache/PKGBUILD new file mode 100644 index 0000000..b7d9937 --- /dev/null +++ b/abs/core/python_modules/python-requests-cache/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Christian Rebischke <chris.rebischke[at]archlinux[dot]org> + +pkgbase=python-requests-cache +_pyname=requests-cache +pkgname=('python2-requests-cache') +makedepends=('python2' 'python2-setuptools') +pkgver=0.4.12 +pkgrel=2 +pkgdesc="Persistent cache for requests library" +arch=('any') +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=('06d563d59c24f311209b81beb96130b75d1e849e0bb94ad636b3ac269eed7c89fdddfed8da86560473c4463425ea98953d30fb3da05efd614907855f130587fc') + +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" + +} + +package_python2-requests-cache() { + depends=('python2') + cd "${srcdir}/${_pyname}-${pkgver}" + python2 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" + +} + +# vim:set et sw=2 ts=2 tw=79: |