/
PKGBUILD
59 lines (53 loc) · 1.2 KB
/
PKGBUILD
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Maintainer: Jerome Leclanche <jerome@leclan.ch>
pkgname=ofono
pkgver=1.34
pkgrel=0
pkgdesc="Infrastructure for building mobile telephony (GSM/UMTS) applications"
url="https://github.com/neochapay/ofono-new"
arch=('x86_64' 'aarch64')
license=("GPL2")
depends=("bluez"
"dbus"
"modemmanager"
"glib2"
"udev"
"mobile-broadband-provider-info"
"libglibutil>=1.0.51"
"libwspcodec"
"libdbusaccess"
"libdbuslog")
source=("${pkgname}::git+${url}")
sha256sums=('SKIP')
prepare() {
cd "${srcdir}/${pkgname}/ofono"
git checkout branch-1.34-qmi
./bootstrap
}
build() {
cd "${srcdir}/${pkgname}/ofono"
#unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
autoreconf -fi
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--sbindir=/usr/bin \
--localstatedir=/var \
--with-systemdunitdir=/usr/lib/systemdir/system \
--enable-test \
--enable-sailfish-bt \
--enable-sailfish-debuglog \
--enable-sailfish-provision \
--enable-sailfish-pushforwarder \
--enable-sailfish-access \
--disable-add-remove-context \
--disable-isimodem \
--enable-qmimodem \
--disable-rilmodem \
--disable-bluez4 \
--enable-tools
make
}
package() {
cd "${srcdir}/${pkgname}/ofono"
make DESTDIR="$pkgdir" install
}