diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -3,15 +3,21 @@ pkgname=python-lru-dict pkgver=1.3.0 -pkgrel=1 +pkgrel=2 pkgdesc='A fast and memory efficient LRU cache for Python' arch=(x86_64) url=https://github.com/amitdev/lru-dict license=(MIT) -depends=(python) +depends=( + glibc + python +) makedepends=( git + python-build + python-installer python-setuptools + python-wheel ) _tag=51c2761d94fd6fc85faea550240814938d1594f9 source=(git+https://github.com/amitdev/lru-dict.git#tag=${_tag}) @@ -24,13 +30,12 @@ pkgver() { build() { cd lru-dict - python setup.py build_ext + python -m build --wheel --no-isolation } package() { - cd lru-dict - python setup.py install --root="${pkgdir}" --optimize=1 - install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-lru-dict/ + python -m installer --destdir="${pkgdir}" lru-dict/dist/*.whl + install -Dm 644 lru-dict/LICENSE -t "${pkgdir}"/usr/share/licenses/python-lru-dict/ } # vim: ts=2 sw=2 et: |