# Maintainer: Hu Butui <hot123tea123@gmail.com>
# Contributor: Tomas S. <me+aur at wereii.cz>
# Contributor: Simon Perry <aur [at] sanxion [dot] net>

pkgname=python-diskcache
pkgver=5.6.3
pkgrel=4
pkgdesc='Python disk and file backed cache library'
arch=('any')
license=('Apache')
url='https://github.com/grantjenks/python-diskcache'
depends=(
  python-django
)
makedepends=(
  python-setuptools
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/grantjenks/python-diskcache/archive/v${pkgver}.tar.gz")
sha256sums=('ecd01a006c60c68171571da77d905878bacc2103a8e0ade55dcda26271ea2bb3')

build() {
  cd "${pkgname}-${pkgver}"
  python setup.py build
}

package() {
  cd "${pkgname}-${pkgver}"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et:
