summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3859a4c52f16bd9966dca3d033d70ddc49ec754 (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
# 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"
}