diff options
author | Ivan Shapovalov | 2024-02-22 17:35:26 +0300 |
---|---|---|
committer | Ivan Shapovalov | 2024-02-22 17:35:47 +0300 |
commit | f6a2c1c35a25899729ea9df5165511a067f7d31a (patch) | |
tree | 0636131ae2d38cf9d9f3c208aaef22db8f90f263 /PKGBUILD | |
parent | 2fa73d127fc285ff044a159cc6c132429499fa55 (diff) | |
download | aur-python-btrfs-git.tar.gz |
Convert to PEP517
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3,14 +3,14 @@ _pkgname=python-btrfs pkgname=python-btrfs-git -pkgver=12.r3.ga4f7697 +pkgver=13.r6.g59c8dac pkgrel=1 pkgdesc="Python Btrfs module" arch=('any') url="https://github.com/knorrie/python-btrfs" license=('LGPL3') depends=('python') -makedepends=('git') +makedepends=('git' 'python-setuptools' 'python-build' 'python-installer' 'python-wheel') provides=('python-btrfs') conflicts=('python-btrfs') source=("git+https://github.com/knorrie/python-btrfs.git#branch=develop") @@ -23,12 +23,12 @@ pkgver() { build() { cd python-btrfs - python setup.py build + python -m build --wheel --no-isolation } package() { cd python-btrfs - python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm755 bin/btrfs-* -t "$pkgdir/usr/bin" install -Dm644 man/*.1 -t "$pkgdir/usr/share/man/man1" install -Dm644 examples/*.py -t "$pkgdir/usr/share/doc/$_pkgname/examples" |