# Depends on: python2 glib libgudev libmbim

description="GLib-based library for talking to WWAN modems and devices (QMI) protocol."
url="http://www.freedesktop.org/software/libqmi/"
packager="tnut <tnut@nutyx.org>"
contributors="Pierre B"

name=libqmi
version=1.20.2
release=2

source=( http://www.freedesktop.org/software/libqmi/libqmi-$version.tar.xz)

build() {
cd libqmi-$version
./configure --prefix=/usr --disable-static
make
make DESTDIR=$PKG install
# Obsolet lib
rm $PKG/usr/lib/libqmi-glib.la
}
uptodate() {
local url ext
ext=".tar.xz"
url="https://www.freedesktop.org/software/$name/"
lynx -read_timeout=20 -dump -listonly -nonumbers \
$url/?C=N\;O=D|grep $name|grep $ext$|head -1|sed "s@$url/$name-@@"|sed "s/$ext//"
}
