diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -3,26 +3,26 @@ pkgname=ncmpy pkgver=1.5.7 -pkgrel=1 +pkgrel=2 pkgdesc="Curses-based MPD client" arch=('any') url="https://github.com/cykerway/ncmpy" license=('GPL3') depends=('python-mpd2' 'python-yaml') -makedepends=('python-setuptools') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') backup=("etc/$pkgname/$pkgname.yaml") source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") sha256sums=('31009d9c15aeef43c70273b5a52cca2aaf62226cff3e5699c48d3d28e1804695') build() { cd "$pkgname-$pkgver" - python setup.py build + python -m build --wheel --no-isolation } package() { cd "$pkgname-$pkgver" - python setup.py install --root="$pkgdir/" --optimize=1 --skip-build - install -Dm 644 data/ncmpy.yaml.example "$pkgdir/etc/$pkgname/$pkgname.yaml" + PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 data/ncmpy.yaml.example "$pkgdir/etc/$pkgname/$pkgname.yaml" } # vim:set ts=2 sw=2 et: |