blob: 9bc4fb392e6dde9bc0b89054e52cc8e32a894aba (
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
|
# Maintainer: Clément Bénier <clement.benier@iot.bzh>
pkgname=appcontroller-git
pkgver=8.0.1
pkgrel=1
pkgdesc="controller"
arch=('x86_64')
url="https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/libafb-helpers"
license=('Apache-2.0')
depends=('systemd' 'json-c' 'lua' 'app-framework-binder' 'afb-helpers')
makedepends=('cmake' 'gcc' 'make' 'lua' 'app-framework-binder' 'cmake-afb-template' 'afb-helpers')
checkdepends=()
optdepends=()
provides=('appcontroller')
conflicts=('appcontroller')
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname%-git}::git+https://gerrit.automotivelinux.org/gerrit/src/libappcontroller")
noextract=()
md5sums=('SKIP')
validpgpkeys=()
pkgver() {
cd "$srcdir/${pkgname%-git}"
git tag | grep -E "^[0-9]" | sort -r | head -1
}
build() {
mkdir -p "$srcdir/build"
cd "$srcdir/build"
cmake "$srcdir/${pkgname%-git}" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
make
}
package() {
cd "$srcdir/build"
make DESTDIR="$pkgdir/" install
install -D -m644 "${srcdir}/${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|