[arch-commits] Commit in libratbag/trunk (PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Thu May 23 09:10:18 UTC 2019
Date: Thursday, May 23, 2019 @ 09:10:18
Author: ffy00
Revision: 469247
build documentation (upg 0.9.905-2)
Modified:
libratbag/trunk/PKGBUILD
----------+
PKGBUILD | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-05-23 08:32:29 UTC (rev 469246)
+++ PKGBUILD 2019-05-23 09:10:18 UTC (rev 469247)
@@ -2,13 +2,13 @@
pkgname=libratbag
pkgver=0.9.905
-pkgrel=1
+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' 'python' 'python-evdev')
-makedepends=('meson' 'swig' 'git')
+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=('7b1486846ecfc1fc5988c5c99cbe8c79cd9c6d01714e63c896b97caa1d323bc9538ebe10c73a9d0d46df497d408ce5302d673f59814de2a744bfeee6fc72d4ac')
@@ -15,11 +15,17 @@
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 ..
+ arch-meson .. \
+ -Dsystemd-unit-dir=/usr/lib/systemd/system \
+ -Ddocumentation=true
ninja
}
@@ -35,5 +41,11 @@
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