summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 511965425dc857a82314105a9c727f70c2806c75 (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
# Maintainer: Clément Bénier <clement.benier@iot.bzh>
pkgname=afb-binder-git
pkgver=4.0.0beta+2+g2be7740
pkgrel=1
pkgdesc="This project provides the binder component of the microservice architecture for Application Framework."
arch=('x86_64')
url="https://github.com/redpesk-core/afb-binder.git"
license=('LGPL3')
depends=('afb-libafb-git')
makedepends=('cmake' 'gcc' 'make' 'lua' 'git')
checkdepends=()
optdepends=()
provides=('afb-binder')
conflicts=('afb-binder')
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname%-git}::git+https://github.com/redpesk-core/afb-binder.git")
noextract=()
md5sums=('SKIP')
validpgpkeys=()

pkgver() {
    cd "$srcdir/${pkgname%-git}"
	git describe | sed "s/-/+/g"
}

build() {
    cmake \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_INSTALL_LIBDIR=lib \
		"$srcdir/${pkgname%-git}"
    make -j
}

package() {
	make DESTDIR="$pkgdir/" install
    install -D -m644 "${srcdir}/${pkgname%-git}/LICENSE.GPLv3" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.GPLv3"
    install -D -m644 "${srcdir}/${pkgname%-git}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}