File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ license=('GPL')
9
9
sha512sums=(' SKIP' )
10
10
arch=(' any' )
11
11
depends=(' python' ' python-pyxdg' ' python-click' )
12
- makedepends=(' git' ' python-setuptools' ' scdoc' )
12
+ makedepends=(' git' ' python-build ' ' python-installer ' ' python-wheel ' ' python- setuptools' ' scdoc' )
13
13
provides=(' qbpm' )
14
14
source=(" git+https://github.com/pvsr/qbpm" )
15
15
@@ -18,6 +18,15 @@ pkgver() {
18
18
git describe --long --tags | sed ' s/\([^-]*-g\)/r\1/;s/-/./g'
19
19
}
20
20
21
+ prepare () {
22
+ git -C " ${srcdir} /qbpm" clean -dfx
23
+ }
24
+
25
+ build () {
26
+ cd qbpm
27
+ python -m build --wheel --no-isolation
28
+ }
29
+
21
30
package () {
22
31
cd qbpm
23
32
install -D -m644 completions/qbpm.fish ${pkgdir} /usr/share/fish/vendor_completions.d/qbpm.fish
@@ -26,5 +35,5 @@ package() {
26
35
scdoc < qbpm.1.scd > qbpm.1
27
36
install -D -m644 qbpm.1 ${pkgdir} /usr/share/man/man1/qbpm.1
28
37
29
- python setup.py install --root =" $pkgdir " --optimize=1
38
+ python -m installer --destdir =" $pkgdir " dist/ * .whl
30
39
}
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ repository = "https://github.com/pvsr/qbpm"
26
26
[project .scripts ]
27
27
qbpm = " qbpm.main:main"
28
28
29
+ [build-system ]
30
+ requires = [" setuptools" ]
31
+ build-backend = " setuptools.build_meta"
32
+
29
33
[tool .setuptools ]
30
34
packages = [" qbpm" ]
31
35
You can’t perform that action at this time.
0 commit comments