mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 02:04:37 +08:00
40 lines
767 B
Bash
40 lines
767 B
Bash
pkgname=libqmi
|
|
pkgver=1.20.0
|
|
pkgrel=3
|
|
pkgdesc="QMI modem protocol helper library"
|
|
arch=('x86_64')
|
|
url="http://www.freedesktop.org/wiki/Software/libqmi/"
|
|
license=(GPL2)
|
|
depends=('libmbim')
|
|
makedepends=('python2-six' 'git')
|
|
_commit=a7fd5363cff7af6137065065ce405adf7bcbfc35 # tags/1.20.0
|
|
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 --disable-gtk-doc
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname
|
|
make DESTDIR=$pkgdir install
|
|
}
|