summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 28b539814e903358c733092e71d0ea30c237258c (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
39
40
41
42
43
# Maintainer: Richard Neumann aka. rne <r dot neumann at homeinfo fullstop de>

pkgname='libmbim-qmi-over-mbim'
pkgver=r412.d36c3c7
pkgrel=1
pkgdesc="MBIM modem protocol helper library with experimental qmi-over-mbim patch"
arch=('i686' 'x86_64')
url='http://www.freedesktop.org/wiki/Software/libmbim/'
license=('GPL2')
depends=('glib2' 'bash' 'systemd' 'libgudev')
makedepends=('git' 'gtk-doc')
provides=('libmbim')
conflicts=('libmbim')
source=("git+https://cgit.freedesktop.org/libmbim/libmbim")
md5sums=('SKIP')
pkgdir='pkg'
srcdir='src'


pkgver() {
    cd libmbim
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}


prepare() {
    cd libmbim
    git checkout qmi-over-mbim
    git pull origin qmi-over-mbim
}


build() {
    cd libmbim
    ./autogen.sh --prefix=/usr
}


package() {
    cd libmbim
    make DESTDIR="${pkgdir}/" install
    libtool --finish "${pkgdir}/usr/lib"
}