Date: Monday, November 7, 2022 @ 01:25:25
Author: felixonmars
Revision: 1345719
archrelease: copy trunk to community-staging-x86_64
Added:
libratbag/repos/community-staging-x86_64/
libratbag/repos/community-staging-x86_64/PKGBUILD
(from rev 1345718, libratbag/trunk/PKGBUILD)
libratbag/repos/community-staging-x86_64/keys/
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: libratbag/repos/community-staging-x86_64/PKGBUILD (from rev 1345718,
libratbag/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-11-07 01:25:25 UTC (rev 1345719)
@@ -0,0 +1,51 @@
+# Maintainer: Filipe Laíns (FFY00) <[email protected]>
+
+pkgname=libratbag
+pkgver=0.16
+pkgrel=2
+pkgdesc='A DBus daemon to configure gaming mice'
+arch=('x86_64')
+url='https://github.com/libratbag/libratbag'
+license=('MIT')
+depends=('glib2' 'libevdev' 'libudev.so' 'libunistring' 'json-glib' 'python'
'python-evdev' 'python-gobject')
+optdepends=('linux: Linux 5.2 is required for Logitech wireless devices')
+makedepends=('meson' 'swig' 'git' 'python-sphinx' 'python-sphinx_rtd_theme'
'systemd')
+checkdepends=('check' 'valgrind' 'python-gobject' 'python-lxml')
+validpgpkeys=('3DCE51D60930EBA47858BA4146F633CBB0EB4BF2' # Filipe Laíns
(FFY00) <[email protected]>
+ '3C2C43D9447D5938EF4551EBE23B7E70B467F0BF' # Peter Hutterer
(Who-T) <[email protected]>
+ '2F2670AC164DB36F') # Benjamin Tissoires
<[email protected]>
+source=("git+$url#tag=v$pkgver?signed")
+sha512sums=('SKIP')
+provides=('ratbagd' 'liblur')
+conflicts=('ratbagd' 'liblur')
+
+build() {
+ mkdir -p $pkgname/build
+ cd $pkgname/build
+
+ arch-meson .. \
+ -Dsystemd-unit-dir=/usr/lib/systemd/system \
+ -Ddocumentation=true
+
+ ninja
+}
+
+check() {
+ cd $pkgname/build
+
+ meson test --no-rebuild
+}
+
+package() {
+ cd $pkgname/build
+
+ DESTDIR="$pkgdir" ninja install
+
+ # Install documentation
+ install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
+ cp -r -a --no-preserve=ownership doc/html "$pkgdir"/usr/share/doc/$pkgname
+ rm -rf "$pkgdir"/usr/share/doc/$pkgname/html/.doctrees
+
+ # Install license
+ install -Dm 644 ../COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}