summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d6ff3f5d61fbdf4b4c0d308cac4afdefa7c0f175 (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
# Maintainer: Sophie Tauchert <sophie@999eagle.moe>

pkgname=gx52
pkgver=0.7.4
pkgrel=1
pkgdesc="A GTK application designed to provide control for the LEDs and MFD of Logitech X52 and X52 Pro H.O.T.A.S."
arch=('any')
url="https://gitlab.com/leinardi/gx52"
license=('GPL3')
depends=('gobject-introspection' 'libappindicator-gtk3' 'python' 'python-evdev' 'python-gobject' 'python-injector' 'python-peewee' 'python-pyudev' 'python-pyusb' 'python-requests' 'python-rx' 'python-xdg')
makedepends=('meson' 'appstream-glib' 'libudev0' 'libusb')
provides=()
conflicts=()
install="$pkgname.install"
source=("https://gitlab.com/leinardi/gx52/-/archive/$pkgver/$pkgname-$pkgver.tar.gz"
        '60-gx52.rules')
sha256sums=('94eef3d52399f65a61b51459f32cb2a99c3b2403955691055db13456531d4f63'
            '8239c7529f939f12455a3db5c000e76df9bb77c84f4ed9092ae731c5a1b3ab90')

build() {
	if [[ -d "$srcdir/build" ]]; then
		rm -rf "$srcdir/build"
	fi
	meson --prefix /usr --buildtype=plain "$pkgname-$pkgver" build
	ninja -C build
}

check() {
	ninja -C build test
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
	install -Dm644 "$srcdir/60-gx52.rules" "$pkgdir/usr/lib/udev/rules.d/60-gx52.rules"
}