core/libqmi/PKGBUILD
2016-12-10 19:07:29 +01:00

42 lines
841 B
Bash

# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
pkgname=libqmi
pkgver=1.16.2
pkgrel=1
pkgdesc="QMI modem protocol helper library"
arch=(i686 x86_64)
url="http://www.freedesktop.org/wiki/Software/libqmi/"
license=(GPL2)
depends=(libmbim)
makedepends=(gtk-doc python git)
_commit=f114f4ebe66c538cbb28b05eb0b065fe08c6f9fa # tags/1.16.2
source=("git://anongit.freedesktop.org/libqmi#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd $pkgname
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd $pkgname
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--libexecdir=/usr/lib/$pkgname --disable-static --enable-gtk-doc
make
}
check() {
cd $pkgname
make check
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
}