summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bénier2020-12-21 15:35:32 +0100
committerClément Bénier2020-12-21 15:35:32 +0100
commita06d7950b73df62c760fde0970025645af815b0a (patch)
tree3e83c911c83c6e923c3f883545d276d57d09537a
downloadaur-afb-client-git.tar.gz
release of afb-client (redpesk)
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD42
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1ec40d0c784
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = afb-client-git
+ pkgdesc = This project provides simple client of the Application Framework Binder of micro-service architecture.
+ pkgver = 4.0.0beta2
+ pkgrel = 1
+ url = https://github.com/redpesk-core/afb-client.git
+ arch = x86_64
+ license = LGPL3
+ makedepends = cmake
+ makedepends = gcc
+ makedepends = make
+ makedepends = lua
+ makedepends = git
+ depends = afb-libafb-git
+ provides = afb-client
+ conflicts = afb-client
+ source = afb-client::git+https://github.com/redpesk-core/afb-client.git
+ md5sums = SKIP
+
+pkgname = afb-client-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..20bddc0d5d9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Clément Bénier <clement.benier@iot.bzh>
+pkgname=afb-client-git
+pkgver=4.0.0beta2
+pkgrel=1
+pkgdesc="This project provides simple client of the Application Framework Binder of micro-service architecture."
+arch=('x86_64')
+url="https://github.com/redpesk-core/afb-client.git"
+license=('LGPL3')
+depends=('afb-libafb-git')
+makedepends=('cmake' 'gcc' 'make' 'lua' 'git')
+checkdepends=()
+optdepends=()
+provides=('afb-client')
+conflicts=('afb-client')
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=("${pkgname%-git}::git+https://github.com/redpesk-core/afb-client.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"
+}