PKGBUILDs/extra/libqmi/PKGBUILD

47 lines
1.1 KiB
Bash
Raw Normal View History

2021-01-30 02:51:16 +00:00
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - configure with --enable-qrtr
pkgname=libqmi
2022-02-12 03:11:13 +00:00
pkgver=1.30.4
2022-02-12 22:26:27 +00:00
pkgrel=1.1
2021-01-30 02:51:16 +00:00
pkgdesc="QMI modem protocol helper library"
arch=(x86_64)
url="https://www.freedesktop.org/wiki/Software/libqmi/"
license=(GPL2)
2021-02-22 20:29:22 +00:00
depends=(libmbim libqrtr-glib libgudev)
2021-08-07 01:05:47 +00:00
makedepends=(gtk-doc python git help2man gobject-introspection)
2021-01-30 02:51:16 +00:00
provides=(libqmi-glib.so)
2022-02-12 03:11:13 +00:00
_commit=f6c2feaf199e0f129a0bde8c5e6cba5f2117b564 # tags/1.30.4
2021-01-30 02:51:16 +00:00
source=("git+https://gitlab.freedesktop.org/mobile-broadband/libqmi.git#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
2022-02-12 03:11:13 +00:00
cd libqmi
git describe --tags | sed 's/-rc/rc/;s/[^-]*-g/r&/;s/-/+/g'
2021-01-30 02:51:16 +00:00
}
prepare() {
2022-02-12 03:11:13 +00:00
cd libqmi
2021-01-30 02:51:16 +00:00
NOCONFIGURE=1 ./autogen.sh
}
build() {
2022-02-12 03:11:13 +00:00
cd libqmi
2021-01-30 02:51:16 +00:00
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--libexecdir=/usr/lib --disable-static --enable-gtk-doc \
--enable-compile-warnings=yes --enable-qrtr
make
}
check() {
2022-02-12 03:11:13 +00:00
cd libqmi
2021-01-30 02:51:16 +00:00
make check
}
package() {
2022-02-12 03:11:13 +00:00
cd libqmi
2021-01-30 02:51:16 +00:00
make DESTDIR="$pkgdir" install
}