[arch-commits] Commit in libratbag/repos (2 files)

Filipe Laíns ffy00 at archlinux.org
Wed Jul 17 14:00:03 UTC 2019


    Date: Wednesday, July 17, 2019 @ 14:00:02
  Author: ffy00
Revision: 490217

archrelease: copy trunk to community-testing-x86_64

Added:
  libratbag/repos/community-testing-x86_64/
  libratbag/repos/community-testing-x86_64/PKGBUILD
    (from rev 490216, libratbag/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: libratbag/repos/community-testing-x86_64/PKGBUILD (from rev 490216, libratbag/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2019-07-17 14:00:02 UTC (rev 490217)
@@ -0,0 +1,51 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=libratbag
+pkgver=0.9.906
+pkgrel=1
+pkgdesc='A DBus daemon to configure gaming mice'
+arch=('x86_64')
+url='https://github.com/libratbag/libratbag'
+license=('MIT')
+depends=('glib2' 'libevdev' 'libudev.so' 'python' 'python-evdev')
+makedepends=('meson' 'swig' 'git' 'python-sphinx' 'python-sphinx_rtd_theme')
+checkdepends=('check' 'valgrind' 'python-gobject' 'python-lxml')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('f241c931a566b1b008c5cffee59f782ef448425e28c47186067e681e6af6ba0bd2f53d3cedac038628464fa72c6dade4d940750d903b69c081911d9d9ed5ee18')
+provides=('ratbagd' 'liblur')
+conflicts=('ratbagd' 'liblur')
+
+prepare() {
+  sed -i 's|sphinx-build3|sphinx-build|' $pkgname-$pkgver/doc/meson.build
+}
+
+build() {
+  mkdir -p $pkgname-$pkgver/build
+  cd $pkgname-$pkgver/build
+
+  arch-meson .. \
+  	-Dsystemd-unit-dir=/usr/lib/systemd/system \
+  	-Ddocumentation=true
+
+  ninja
+}
+
+check() {
+  cd $pkgname-$pkgver/build
+
+  meson test --no-rebuild
+}
+
+package() {
+  cd $pkgname-$pkgver/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
+
+  # Install license
+  install -Dm 644 ../COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+



More information about the arch-commits mailing list