diff options
author | Maxim Devaev <[email protected]> | 2023-06-28 15:13:07 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-06-28 15:13:07 +0300 |
commit | 10a83631832e7a74919e1af86ae4290074582a50 (patch) | |
tree | 3f5f0982891d31a61c46ca38f69f2e4e329e72cd /PKGBUILD | |
parent | c129f54efa190599dc326e463af7ce32f493f763 (diff) |
Direct usage of setup.py is deprecated
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 6 insertions, 12 deletions
@@ -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} |