summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-06-28 15:13:07 +0300
committerMaxim Devaev <[email protected]>2023-06-28 15:13:07 +0300
commit10a83631832e7a74919e1af86ae4290074582a50 (patch)
tree3f5f0982891d31a61c46ca38f69f2e4e329e72cd
parentc129f54efa190599dc326e463af7ce32f493f763 (diff)
Direct usage of setup.py is deprecated
-rw-r--r--PKGBUILD18
1 files changed, 6 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f1306e2c..c1f4f7c2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -119,7 +119,10 @@ conflicts=(
python-pikvm
python-aiohttp-pikvm
)
-makedepends=(python-setuptools)
+makedepends=(
+ python-setuptools
+ python-pip
+)
source=("$url/archive/v$pkgver.tar.gz")
md5sums=(SKIP)
backup=(
@@ -135,20 +138,11 @@ backup=(
)
-build() {
- cd "$srcdir"
- rm -rf $pkgname-build
- cp -r kvmd-$pkgver $pkgname-build
- cd $pkgname-build
- python setup.py build
-}
-
-
package_kvmd() {
install=$pkgname.install
- cd "$srcdir/$pkgname-build"
- python setup.py install --root="$pkgdir"
+ cd "$srcdir/kvmd-$pkgver"
+ pip install --root="$pkgdir" --no-deps .
install -Dm755 -t "$pkgdir/usr/bin" scripts/kvmd-{bootconfig,gencert,certbot}