summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorClément Bénier2019-09-26 14:27:40 +0200
committerClément Bénier2019-09-26 14:27:40 +0200
commit99078dda42a3530b98d720af844dcdbc1fd9bbe9 (patch)
treecabd870f3aeed037655a732fae11223e687dee88 /PKGBUILD
downloadaur-appcontroller-git.tar.gz
appcontroller: initial commit AGL
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9bc4fb392e6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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"
+}