APKBUILD 950 Bytes
Newer Older
Stuart Cardall's avatar
Stuart Cardall committed
1 2 3
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=libmbim
prspkt's avatar
prspkt committed
4
pkgver=1.18.0
Stuart Cardall's avatar
Stuart Cardall committed
5 6
pkgrel=0
pkgdesc="MBIM modem protocol helper library"
7
url="https://www.freedesktop.org/wiki/Software/libmbim/"
Stuart Cardall's avatar
Stuart Cardall committed
8
arch="all"
9
license="GPL-2.0-or-later LGPL-2.1-or-later"
10
makedepends="$depends_dev gtk-doc python2 glib-dev py-gobject libgudev-dev"
Stuart Cardall's avatar
Stuart Cardall committed
11
subpackages="$pkgname-dev $pkgname-doc"
prspkt's avatar
prspkt committed
12
source="https://www.freedesktop.org/software/libmbim/$pkgname-$pkgver.tar.xz"
13
builddir="$srcdir"/$pkgname-$pkgver
Stuart Cardall's avatar
Stuart Cardall committed
14 15

build() {
16
	cd "$builddir"
Stuart Cardall's avatar
Stuart Cardall committed
17 18 19 20
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
21 22 23 24 25 26 27
		--disable-static
	make
}

check() {
	cd "$builddir"
	make check
Stuart Cardall's avatar
Stuart Cardall committed
28 29 30
}

package() {
31
	cd "$builddir"
Stuart Cardall's avatar
Stuart Cardall committed
32 33 34
	make DESTDIR="$pkgdir" install
}

prspkt's avatar
prspkt committed
35
sha512sums="510af324563a6a4f9a9d656d6724398cf5c5ba07424962d5407dd05867ef36da40e1ee6c8be8040c6a67e764bc059d24282db45ce3d47075fcf4d7416245b28d  libmbim-1.18.0.tar.xz"