summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c3859a4c52f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Clément Bénier <clement@benier.bzh>
+pkgname=cmake-afb-template-git
+pkgver=8.0.0
+pkgrel=1
+pkgdesc="
+This is a CMake module made to ease development of binding and application
+framework binder apps."
+arch=('any')
+url="https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/cmake-apps-module"
+license=('Apache-2.0')
+groups=()
+depends=()
+makedepends=('cmake' 'gcc')
+checkdepends=()
+optdepends=()
+provides=('cmake-afb-template')
+conflicts=('cmake-afb-template')
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=("${pkgname%-git}::git+https://gerrit.automotivelinux.org/gerrit/src/cmake-apps-module")
+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
+}
+
+package() {
+ cd "$srcdir/build"
+ make DESTDIR="$pkgdir/" install
+ install -D -m644 "${srcdir}/${pkgname%-git}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}