summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoit Pierre2021-10-29 03:14:00 +0200
committerBenoit Pierre2021-10-29 03:14:00 +0200
commit3230cfce24a468232bd34812899376273c36a056 (patch)
tree79a5933bf5c923f3989b149bdc87ddf8bf322f52
parent86c2c7c9091526d5bcd75792b672bf250a187874 (diff)
downloadaur-3230cfce24a468232bd34812899376273c36a056.tar.gz
switch to a PEP 517 pipeline
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 8 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 222711cc2c25..ab7985ba1cfd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,6 +5,8 @@ pkgbase = plover_plugins_manager
url = https://github.com/benoit-pierre/plover_plugins_manager
arch = any
license = GPL2
+ makedepends = python-build
+ makedepends = python-install
depends = plover-git
depends = python
depends = python-cmarkgfm
diff --git a/PKGBUILD b/PKGBUILD
index ceafcb93d72a..9ca041e53899 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,7 +22,10 @@ depends=(
python-wheel
qt5-svg
)
-makedepends=()
+makedepends=(
+ 'python-build'
+ 'python-install'
+)
url="https://github.com/benoit-pierre/plover_plugins_manager"
_pkgdist="$pkgname-$pkgver"
source=("$pkgname-$pkgver.tar.gz::https://github.com/benoit-pierre/$pkgname/archive/refs/tags/$pkgver.tar.gz")
@@ -30,12 +33,12 @@ sha256sums=('9aeebd2b8de16529638a6a5da95f0c81b3fe87cdbf731ae8c004c7f4f3c1b5df')
build() {
cd "$_pkgdist"
- python setup.py build
+ pyproject-build --no-isolation --skip-dependency-check --wheel
}
package() {
cd "$_pkgdist"
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ python -m install --destdir="$pkgdir" --optimize=1 dist/*.whl
chmod og+rX -R "$pkgdir"
}