summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..980b2099f6f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Sophie Tauchert <sophie@999eagle.moe>
+
+pkgname=gx52
+pkgver=0.7.1
+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=('462cdea1539d76c82690ed4ba614f2bbc9a4862d13648c857c3658a4551e16a8'
+ '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"
+}