blob: 2a882dc6c882cd4de509dd078c04194de50bab8d (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=ratbag
pkgver=0.16_git20220802
pkgrel=0
pkgdesc="DBus daemon to configure input devices, mainly gaming mice"
url="https://github.com/libratbag/libratbag"
arch="all"
license="MIT"
depends="dbus"
makedepends="
elogind-dev
eudev-dev
glib-dev
json-glib-dev
libevdev-dev
libunistring-dev
meson
py3-gobject3-dev
python3-dev
swig
"
checkdepends="check-dev py3-gobject3 py3-evdev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools:_tools"
_commit="d8301414c78917981e2e8ceb99af3ab3e79248ba"
source="$pkgver-$_commit.tar.gz::https://github.com/libratbag/libratbag/archive/$_commit.tar.gz"
builddir="$srcdir/libratbag-$_commit"
build() {
abuild-meson \
-Dsystemd=false \
-Dlogind-provider=elogind \
-Dtests="$(want_check && echo true || echo false)" \
. output
meson compile ${JOBS:+-j ${JOBS}} -C output
}
check() {
meson test --no-rebuild --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
_tools() {
pkgdesc="ratbag cli tools"
depends="python3 py3-evdev py3-gobject3"
amove usr/bin/ratbagctl
amove usr/bin/lur-command
}
sha512sums="
8eee049e5cca5b7761eed9885e0b857d39b6de350d0e68c437b605f251fcf1862ee68fa809620a94c1262828280aafd913bba434a75c6ad8159a216a382f930c 0.16_git20220802-d8301414c78917981e2e8ceb99af3ab3e79248ba.tar.gz
"
|