core/libqmi/PKGBUILD

42 lines
841 B
Bash
Raw Normal View History

2015-07-10 04:46:34 +08:00
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
pkgname=libqmi
2016-12-11 02:07:29 +08:00
pkgver=1.16.2
2015-07-10 04:46:34 +08:00
pkgrel=1
pkgdesc="QMI modem protocol helper library"
arch=(i686 x86_64)
url="http://www.freedesktop.org/wiki/Software/libqmi/"
license=(GPL2)
2016-12-11 02:07:29 +08:00
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
}
2015-07-10 04:46:34 +08:00
build() {
2016-12-11 02:07:29 +08:00
cd $pkgname
2015-07-10 04:46:34 +08:00
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
2016-12-11 02:07:29 +08:00
--libexecdir=/usr/lib/$pkgname --disable-static --enable-gtk-doc
2015-07-10 04:46:34 +08:00
make
}
check() {
2016-12-11 02:07:29 +08:00
cd $pkgname
2015-07-10 04:46:34 +08:00
make check
}
package() {
2016-12-11 02:07:29 +08:00
cd $pkgname
2015-07-10 04:46:34 +08:00
make DESTDIR="$pkgdir" install
}