# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
pkgbase=libmbim
pkgname=(
libmbim
# libmbim-docs
)
pkgver=1.32.0
pkgrel=1
pkgdesc="MBIM modem protocol helper library"
url="https://www.freedesktop.org/wiki/Software/libmbim/"
arch=(x86_64 'armv7h')
license=(GPL-2.0-or-later)
depends=(
bash
gcc-libs
glib2
glibc
)
makedepends=(
bash-completion
git
gobject-introspection
# gtk-doc
help2man
meson
)
source=("git+https://gitlab.freedesktop.org/mobile-broadband/libmbim.git?signed#tag=${pkgver/[a-z]/-&}")
b2sums=('eee35efd2a151d7940e92a16ccfc11fd81345c93629b3c66c9dec799d5609d137ad9482f15cdcf4d43fe949f6498b2f56fc0201a46eb8afcca62a961ac0ea484')
validpgpkeys=(
A814D09B9C5BC01945A64308AECE0239C6606AD5 # Aleksander Morgado <aleksandermj@chromium.org>
3A948E16E8860C68CD68441D734614319E26A433 # Dan Williams <dan@ioncontrol.co>
)
prepare() {
cd libmbim
}
build() {
local meson_options=(
-D gtk_doc=false
)
arch-meson libmbim build "${meson_options[@]}"
meson compile -C build
}
#check() {
# meson test -C build --print-errorlogs
#}
package_libmbim() {
provides=(libmbim-glib.so)
meson install -C build --destdir "$pkgdir"
# mkdir -p doc/usr/share
# mv {"$pkgdir",doc}/usr/share/gtk-doc
}
package_libmbim-docs() {
pkgdesc+=" (documentation)"
depends=()
mv doc/* "$pkgdir"
}
# vim:set sw=2 sts=-1 et: