summaryrefslogtreecommitdiff
path: root/extra/libmbim/PKGBUILD
blob: 901429d4c294dbb69dcd874aebe7989b4c0100a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $Id: PKGBUILD 186608 2013-05-30 04:01:37Z heftig $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>

pkgname=libmbim
pkgver=1.0.0
pkgrel=1
pkgdesc="MBIM modem protocol helper library"
arch=(i686 x86_64)
url="http://cgit.freedesktop.org/libmbim/libmbim"
license=(GPL2)
depends=(glib2 bash systemd)
makedepends=(gtk-doc python)
options=('!libtool')
source=($url/snapshot/$pkgname-$pkgver.tar.xz format.patch)
sha256sums=('c3d668a5dc51700749a62fb5d50f149900e8dd4265e4d132c1d9cc4cb77eef0c'
            'fbf54d12660c132f756c59cebd448a38750e3bbc9de8a7a97ceda466440dcb41')

prepare() {
  cd $pkgname-$pkgver
  patch -Np1 -i ../format.patch
}

build() {
  cd $pkgname-$pkgver
  ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
    --disable-static --with-tests
  make
}

check() {
  cd $pkgname-$pkgver
  make check
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}