summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1d93eb0c1766914992beb51c2daefff9ec02aca9 (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
48
49
50
51
52
53
54
# Maintainer: sgar <swhaat in github>

pkgname=veyon
pkgver=4.8.0
pkgrel=1
pkgdesc="Open Source computer monitoring and classroom management"
arch=('i686' 'x86_64')
url="https://github.com/veyon"
license=('GPLv2')
depends=('qt5-base'
	'libfakekey'
	'kitemmodels'
	'libxcomposite'
	'qca'
	'libxrandr'
	'libxtst'
	'pam'
	'openldap'
	'openssl'
	'libjpeg-turbo'
	'zlib' 'qca-qt5'
	'libqtxdg'
	'lzo'
	'libxinerama'
	'libsasl'
	'x11vnc')
optdepends=('kldap: KDE support')
makedepends=('git' 'gcc' 'cmake' 'qt5-tools' 'procps-ng' 'kldap')
_commit="637f0d040aa19bd68aa5e1f1060a65e42a65c46b"
source=("git+${url}/veyon.git#commit=${_commit}")
sha256sums=('SKIP')

prepare() {
    mkdir -p build

    cd "${srcdir}/${pkgname}"
    git submodule update --init

    cd "${srcdir}/${pkgname}/3rdparty/qthttpserver/"
    git submodule update --init
}

build() {
  cmake -B build -S "$pkgname" \
    -DCMAKE_BUILD_TYPE='RelWithDebInfo' \
    -DCMAKE_INSTALL_PREFIX='/usr' \
    -DSYSTEMD_SERVICE_INSTALL_DIR='/usr/lib/systemd/system' \
    -Wno-dev
  cmake --build build
}

package_veyon() {
    DESTDIR="$pkgdir" cmake --install build
}