blob: 39976f14003e4f0d1460b4d6d272aa645c7a68e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Stephane Wetterwald <stephane.wetterwald@gmail.com>
pkgname=cheatbind
pkgver=0.2.0
pkgrel=1
pkgdesc="Wayland keyboard shortcuts overlay — parses compositor config and displays a styled cheatsheet"
arch=('any')
url="https://github.com/Xhelliom/cheatbind"
license=('MIT')
depends=(
'python>=3.11'
'python-gobject'
'gtk4'
'gtk4-layer-shell'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('SKIP')
build() {
cd "${pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Precompile bytecode for faster first launch
python -m compileall -q "${pkgdir}/usr/lib/"
python -O -m compileall -q "${pkgdir}/usr/lib/"
}
|