diff options
author | Anonymous Coward | 2023-08-28 09:19:57 +0000 |
---|---|---|
committer | Anonymous Coward | 2023-08-28 09:19:57 +0000 |
commit | c7d400966d87d6576e0318e7521b0d6945918404 (patch) | |
tree | 03d06c27a6079582ad3219f59347e1fb1c08dbeb /PKGBUILD | |
parent | a2db3f33ec75009ade7e51c83ed25260b5e66c96 (diff) | |
download | aur-scuba-git.tar.gz |
Fix build using pyproject.toml
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -1,13 +1,13 @@ # Maintainer: Alessandro Pazzaglia <jackdroido@gmail.com> pkgname=scuba-git -pkgver=v2.3.0.r46.0244c81 -pkgrel=2 +pkgver=v2.10.1.r43.c6f3e62 +pkgrel=1 pkgdesc="SCUBA is a simple tool that makes it easier to use Docker containers in everyday development" arch=('any') url="https://github.com/JonathonReinhart/scuba" license=('MIT') -makedepends=('git') +makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools') depends=('python-yaml') source=('scuba-git::git+https://github.com/JonathonReinhart/scuba.git') md5sums=('SKIP') @@ -17,7 +17,16 @@ pkgver() { printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" } +prepare() { + git -C "${srcdir}/${pkgname%-VCS}" clean -dfx +} + +build() { + cd "$srcdir/${pkgname%-VCS}" + python -m build --wheel --no-isolation +} + package() { cd "$srcdir/${pkgname%-VCS}" - python setup.py install --root="$pkgdir/" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl } |