blob: 307f80b6846e10f850c3ad427d12950d4be5513e (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Maintainer: Vadim Yanitskiy <fixeria@osmocom.org>
pkgname=osmo-cbc-git
pkgver=0.5.0.r0.g637874e
pkgrel=1
pkgdesc="Osmocom Cell Broadcast Centre"
arch=('x86_64' 'i686')
url="https://osmocom.org/projects/osmo-cbc"
license=('AGPL-3.0-or-later AND MIT')
depends=('libosmocore-git'
'libosmo-netif-git'
'lksctp-tools'
'talloc'
'jansson'
'orcania'
'ulfius')
optdepends=('python: for osmo-cbc-apitool.py'
'python-requests: for osmo-cbc-apitool.py')
makedepends=('git')
conflicts=("${pkgname%-git}")
provides=("${pkgname%-git}=${pkgver}"
'libosmo-sbcap.so=2-64')
backup=("etc/osmocom/osmo-cbc.cfg")
source=("git+https://gitea.osmocom.org/cellular-infrastructure/${pkgname%-git}.git"
'LICENSE-MIT')
sha256sums=('SKIP'
'323c587d0ccf10e376f8bf9a7f31fb4ca6078105194b42e0b1e0ee2bc9bde71f')
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/${pkgname%-git}"
autoreconf -f -i
}
build() {
cd "$srcdir/${pkgname%-git}"
./configure --prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/bin \
--datadir=/usr/share \
--libexecdir=/usr/lib \
--sysconfdir=/etc \
--localstatedir=/var \
--libdir=/usr/lib
make
}
check() {
cd "$srcdir/${pkgname%-git}"
make check
}
package() {
cd "$srcdir/${pkgname%-git}"
make DESTDIR=$pkgdir install
install -m 755 contrib/cbc-apitool.py "${pkgdir}/usr/bin/osmo-cbc-apitool.py"
install -Dm644 "${srcdir}/LICENSE-MIT" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT"
}
# vim:set ts=2 sw=2 et:
|