blob: 8d1866204cd2310cdb89f9c6d0d7ca1b0d300cf3 (
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
46
47
|
# Maintainer: Václav Kubernát <sir.venceslas@gmail.com>
pkgname=libshv-git
_gitname=libshv
pkgver=r2914.c8072229
pkgrel=1
pkgdesc='An RPC framework build around the ChainPack packing schema'
url='https://github.com/silicon-heaven/libshv'
arch=('i686' 'x86_64' 'armv7h')
license=('LGPL3')
depends=('necrolog' 'glibc' 'gcc-libs' 'qt6-base' 'qt6-serialport' 'qt6-websockets')
makedepends=('git' 'cmake' 'libldap' 'pkg-config')
checkdepends=('doctest' 'trompeloeil')
optdepends=('libldap: for LDAP support')
conflicts=('libshv' 'libshv-git')
provides=('libshv')
source=('git+https://github.com/silicon-heaven/libshv.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
check() {
ctest --test-dir "$srcdir/build"
}
build() {
cmake -S "$srcdir/$_gitname" -B "$srcdir/build" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIBSHV_USE_LOCAL_NECROLOG=ON \
-DLIBSHV_WITH_ALL=ON
cmake --build "$srcdir/build"
}
package() {
DESTDIR="$pkgdir" cmake --install "$srcdir/build"
install -Dm644 "$srcdir/${pkgname%-git}/bash-completion/shv" "${pkgdir}/usr/share/bash-completion/completions/shv"
for prog_name in shvcall shvdevice minimalshvclient minimalshvbroker; do
ln -s shv "${pkgdir}/usr/share/bash-completion/completions/$prog_name"
done
rm "${pkgdir}/usr/bin/cp2cp" # To remove conflict with the rust version
}
|