summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d893591482de8b14bd4a4598dc0ebf94e44c3ca0 (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: zocker_160 <zocker1600 at posteo dot net>
# Co-maintainer: johnjq <dev [at] johnjq (dot) com>
# Co-maintainer: Ewout van Mansom <ewout@vanmansom.name>

pkgname=python-uinput
pkgver=1.0.1
pkgrel=2
pkgdesc='Pythonic API to Linux uinput kernel module'
arch=('x86_64' 'aarch64')
url='https://github.com/pyinput/python-uinput.git'
license=('GPLv3')

depends=('python' 'glibc' 'systemd-libs')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools' 'git')
options=('!emptydirs')

source=("git+https://github.com/pyinput/python-uinput.git#tag=$pkgver")
sha256sums=('SKIP')

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

package() {
	cd "$srcdir/$pkgname"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -m644 -D COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}