summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a948f66a58ca3a3cb14442acbae80eaf045b0421 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Maintainer: sgar <swhaat in github>

pkgname=veyon
pkgver=4.9.0
pkgrel=1
pkgdesc="Cross-platform computer monitoring and classroom management"
arch=('x86_64')
url="https://veyon.io/"
license=('GPL2')
depends=('hicolor-icon-theme' 'libfakekey' 'libjpeg-turbo' 'libldap' 'libsasl'
         'libvncserver' 'libxcomposite' 'libxcursor' 'libxdamage' 'libxext'
         'libxfixes' 'libxinerama' 'libxrandr' 'libxtst' 'lzo' 'openssl' 'pam'
         'procps-ng' 'qca-qt6' 'qt6-base')
makedepends=('clang' 'cmake' 'git' 'qt6-declarative' 'qt6-httpserver' 'qt6-tools')
optdepends=('kldap: KDE support')
_commit=cb2aadd88db9f68657a40af714a2fd72859248f7  # tags/v4.9.0
source=("git+https://github.com/veyon/veyon.git#commit=${_commit}"
        'git+https://github.com/veyon/ultravnc.git'
        'git+https://invent.kde.org/pim/kldap.git'
        'git+https://github.com/veyon/libvncserver.git'
        'git+https://github.com/veyon/x11vnc.git'
        'git+https://github.com/veyon/libfakekey.git'
        'git+https://github.com/veyon/qthttpserver.git'
        'git+https://github.com/nodejs/http-parser.git'
        'git+https://github.com/novnc/noVNC.git'
        )
sha256sums=('SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  git describe --tags | sed 's/^v//;s/-/+/g'
}

prepare() {
  cd "$srcdir/$pkgname"
  git submodule init
  git config submodule.3rdparty/ultravnc.url "$srcdir/ultravnc"
  git config submodule.3rdparty/kldap.url "$srcdir/kldap"
  git config submodule.3rdparty/libvncserver.url "$srcdir/libvncserver"
  git config submodule.3rdparty/x11vnc.url "$srcdir/x11vnc"
  git config submodule.3rdparty/libfakekey.url "$srcdir/libfakekey"
  git config submodule.3rdparty/qthttpserver.url "$srcdir/qthttpserver"
  git config submodule.3rdparty/kldap-qt-compat.url "$srcdir/kldap"
  git -c protocol.file.allow=always submodule update

  pushd 3rdparty/qthttpserver
  git submodule init
  git config submodule.src/3rdparty/http-parser.url "$srcdir/http-parser"
  git -c protocol.file.allow=always submodule update
  popd

  pushd 3rdparty/libvncserver
  git config submodule.webclients/novnc.url "$srcdir/noVNC"
  git -c protocol.file.allow=always submodule update
  popd
}

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

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