[arch-commits] Commit in libinput/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Mon Jun 26 20:08:45 UTC 2017
Date: Monday, June 26, 2017 @ 20:08:44
Author: heftig
Revision: 299275
1.7.902-1: Build with meson
Modified:
libinput/trunk/PKGBUILD
----------+
PKGBUILD | 36 +++++++++++++++++++-----------------
1 file changed, 19 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-06-26 16:05:23 UTC (rev 299274)
+++ PKGBUILD 2017-06-26 20:08:44 UTC (rev 299275)
@@ -3,37 +3,39 @@
# Maintainer: Jan de Groot
pkgname=libinput
-pkgver=1.7.3
+pkgver=1.7.902
pkgrel=1
pkgdesc="Input device management and event handling library"
+url="https://www.freedesktop.org/wiki/Software/libinput/"
arch=(i686 x86_64)
-url="https://www.freedesktop.org/wiki/Software/libinput/"
license=(custom:X11)
depends=('mtdev' 'systemd' 'libevdev' 'libwacom')
-# currently no doc files to install
-makedepends=('doxygen' 'graphviz' 'gtk3')
-#checkdepends=('check' 'libunwind')
+makedepends=('doxygen' 'graphviz' 'gtk3' 'meson')
source=(https://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz{,.sig})
-sha512sums=('2262dc56d213a4d3ea765e870af200e2c336a166baa1bbdf5205e3ce70faefc777429ba09563c5dd79feb5442f53abc84e04a0f32a06bb622d6e120bb8ad152b'
+sha512sums=('022caa34e110e59d64bc2b06eaf50441c66c5fc44685c66923f5688cf1001da980cea991b7f6f348296446ba08f67c9697caef0a938bb59e6054aa7b2c5b0bbe'
'SKIP')
validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # Peter Hutterer (Who-T) <office at who-t.net>
-build() {
+prepare() {
+ mkdir build
cd $pkgname-$pkgver
- ./configure --prefix=/usr --disable-static
- make
}
-check() {
- cd $pkgname-$pkgver
- make check
+build() {
+ cd build
+ meson --prefix=/usr --buildtype=release ../$pkgname-$pkgver --libexecdir=/usr/lib \
+ -Dtests=false
+ ninja
}
package() {
- cd $pkgname-$pkgver
- make DESTDIR="$pkgdir" install
- install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+ cd build
+ DESTDIR="$pkgdir" ninja install
+
+ cd ../$pkgname-$pkgver
+ install -Dvm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
# install doc - no Makefile target
- install -v -dm755 ${pkgdir}/usr/share/doc/libinput
- cp -rv doc/html/* ${pkgdir}/usr/share/doc/libinput
+ install -dv "$pkgdir/usr/share/doc/libinput"
+ cp -av doc/html/* "$pkgdir/usr/share/doc/libinput"
}
More information about the arch-commits
mailing list