[arch-commits] Commit in libevdev/trunk (PKGBUILD)

Andreas Radke andyrtr at gemini.archlinux.org
Tue Nov 9 06:44:30 UTC 2021


    Date: Tuesday, November 9, 2021 @ 06:44:30
  Author: andyrtr
Revision: 427708

upgpkg: libevdev 1.12.0-1: upstream update 1.12.0 - switch to meson build system

Modified:
  libevdev/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-08 22:25:27 UTC (rev 427707)
+++ PKGBUILD	2021-11-09 06:44:30 UTC (rev 427708)
@@ -1,7 +1,7 @@
 # Maintainer: Andreas Radke <andyrtr at archlinux.org>
 
 pkgname=libevdev
-pkgver=1.11.0
+pkgver=1.12.0
 pkgrel=1
 pkgdesc="Wrapper library for evdev devices"
 arch=(x86_64)
@@ -8,27 +8,25 @@
 url="https://www.freedesktop.org/wiki/Software/libevdev/"
 license=(custom:MIT)
 depends=('glibc')
-makedepends=('python' 'check' 'valgrind' 'doxygen')
+makedepends=('python' 'check' 'valgrind' 'doxygen' 'meson')
 provides=('libevdev.so')
 source=(https://freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz{,.sig})
-sha512sums=('b3c6b4a1532c5142f3684b920dcdd497a5368aec516e8c389e2c8f9d1eaba16c907b2a7f2c82a3c3ff89bb4d0ae5503c736098c095f9f1bc98f0668e99bf639d'
+sha512sums=('6c1c1362d5112cdf3816d1f735c27e625f5463ebf10a83d675cd9364c3fb291ebcb91c051da442f1a36ed28ba7dd99af74546707f61274f7d5715c544a0ed04c'
             'SKIP')
 validpgpkeys=('3C2C43D9447D5938EF4551EBE23B7E70B467F0BF') # Peter Hutterer (Who-T) <office at who-t.net>
 
 build() {
-  cd $pkgname-$pkgver
-  ./configure --prefix=/usr \
-    --disable-static
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
-  make
+  arch-meson $pkgname-$pkgver build \
+    -D documentation=disabled
+  meson compile -C build
 }
 check() {
-  cd $pkgname-$pkgver
-  make check
+  meson test -C build
 }
 
 package() {
-  cd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
-  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+  DESTDIR="$pkgdir" meson install -C build
+
+  install -Dm644 $pkgname-$pkgver/COPYING \
+    "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
 }



More information about the arch-commits mailing list