summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1de9fa138a6a337536d4b8a3e54e20e49d026b7 (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
# Maintainer: Zack Didcott

pkgname=snakedream-git
pkgver=1.2.0
pkgrel=1
pkgdesc="Python interface for a Daydream controller."
arch=("any")
url="https://github.com/Zedeldi/snakedream"
license=("MIT")
depends=("python" "python-bleak" "python-matplotlib" "python-uinput" "python-pyautogui")
makedepends=("python-build" "python-installer" "python-setuptools" "python-wheel")
provides=("snakedream")
conflicts=("snakedream")
source=("${pkgname}::git+https://github.com/Zedeldi/snakedream.git")
b2sums=("SKIP")

prepare() {
    git -C "${srcdir}/${pkgname}" clean -dfx
}

build() {
    cd "${pkgname}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${pkgname}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
}