git » libmbim.git » commit fe9f094

1.26.2-1

author Jan Alexander Steffens
2021-11-18 22:51:20 UTC
committer Jan Alexander Steffens
2021-11-18 22:51:20 UTC
parent b4fd9ca67e82661eaaf2b3358552fbaccb84e1fa

1.26.2-1

PKGBUILD +9 -15

diff --git a/PKGBUILD b/PKGBUILD
index d2554d4..701e1f7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,43 +1,37 @@
 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
 
 pkgname=libmbim
-pkgver=1.26.0
-pkgrel=2
+pkgver=1.26.2
+pkgrel=1
 pkgdesc="MBIM modem protocol helper library"
 arch=(x86_64)
 url="https://www.freedesktop.org/wiki/Software/libmbim/"
 license=(GPL2)
 depends=(glib2 bash systemd)
-makedepends=(gtk-doc python git help2man gobject-introspection)
+makedepends=(gtk-doc meson git help2man gobject-introspection bash-completion)
 provides=(libmbim-glib.so)
-_commit=717067603d82c14452e70fa24cacb60ac7688685  # tags/1.26.0
+_commit=55d51a8a76921b478a75b79a8695b37d989e4868  # tags/1.26.2
 source=("git+https://gitlab.freedesktop.org/mobile-broadband/libmbim.git#commit=$_commit")
 sha256sums=('SKIP')
 
 pkgver() {
   cd $pkgname
-  git describe --tags | sed 's/-rc/rc/;s/-/+/g'
+  git describe --tags | sed 's/-rc/rc/;s/[^-]*-g/r&/;s/-/+/g'
 }
 
 prepare() {
   cd $pkgname
-  NOCONFIGURE=1 ./autogen.sh
 }
 
 build() {
-  cd $pkgname
-  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
-    --libexecdir=/usr/lib --disable-static --enable-gtk-doc \
-    --enable-compile-warnings=yes
-  make
+  arch-meson $pkgname build -D gtk_doc=true
+  meson compile -C build
 }
 
 check() {
-  cd $pkgname
-  make check
+  meson test -C build --print-errorlogs
 }
 
 package() {
-  cd $pkgname
-  make DESTDIR="$pkgdir" install
+  meson install -C build --destdir "$pkgdir"
 }