Files
alr-repo/veyon/alr.sh

112 lines
5.7 KiB
Bash

name='veyon'
version='4.9.7'
release='2'
desc='Cross-platform computer monitoring and classroom management'
desc_ru='Кроссплатформенное мониторинг компьютеров и управление классными комнатами'
homepage='https://veyon.io/'
maintainer='Evgeny Khramov <xpamych@yandex.ru>'
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
architectures=('amd64')
license=('GPL2')
provides=('veyon')
conflicts=('veyon' 'veyon-bin' 'veyon-git')
deps=('hicolor-icon-theme' 'libfakekey' 'libjpeg-turbo' 'openldap' 'libgsasl' 'libvncserver' 'libXcomposite' 'libXcursor' 'libXdamage' 'libXext' 'libXfixes' 'libXinerama' 'libXrandr' 'libXtst' 'lzo' 'openssl' 'pam' 'procps-ng' 'qca-qt6' 'qt6-qtbase')
deps_alt=('hicolor-icon-theme' 'libfakekey' 'libjpeg-turbo' 'openldap' 'libgsasl' 'libvncserver' 'libXcomposite' 'libXcursor' 'libXdamage' 'libXext' 'libXfixes' 'libXinerama' 'libXrandr' 'libXtst' 'lzo' 'openssl' 'pam' 'procps' 'qca-qt6' 'qt6-base')
deps_arch=('hicolor-icon-theme' 'libfakekey' 'libjpeg-turbo' 'libldap' 'libgsasl' 'libvncserver' 'libxcomposite' 'libxcursor' 'libxdamage' 'libxext' 'libxfixes' 'libxinerama' 'libxrandr' 'libxtst' 'lzo' 'openssl' 'pam' 'procps-ng' 'qca-qt6' 'qt6-base')
deps_debian=('hicolor-icon-theme' 'libfakekey0' 'libjpeg-turbo8' 'libldap-2.5-0' 'libgsasl7' 'libvncserver1' 'libxcomposite1' 'libxcursor1' 'libxdamage1' 'libxext6' 'libxfixes3' 'libxinerama1' 'libxrandr2' 'libxtst6' 'liblzo2-2' 'libssl3' 'libpam0g' 'procps' 'qca-qt6' 'qt6-base-dev')
deps_fedora=("${deps[@]}")
deps_redos=("${deps_fedora[@]}")
deps_rhel=("${deps_fedora[@]}")
deps_rosa=("${deps_fedora[@]}")
deps_alpine=('hicolor-icon-theme' 'libfakekey' 'libjpeg-turbo' 'openldap' 'libgsasl' 'libvncserver' 'libxcomposite' 'libxcursor' 'libxdamage' 'libxext' 'libxfixes' 'libxinerama' 'libxrandr' 'libxtst' 'lzo' 'openssl' 'linux-pam' 'procps-ng' 'qca-qt6' 'qt6-qtbase')
build_deps=('clang' 'cmake' 'git' 'qt6-qtbase-devel' 'qt6-qtdeclarative-devel' 'qt6-qthttpserver-devel' 'qt6-qttools-devel' 'qt6-qt5compat-devel' 'libpng-devel' 'libjpeg-devel' 'lzo-devel' 'openldap-devel' 'pam-devel' 'procps-ng-devel' 'libXtst-devel' 'libXrandr-devel' 'libXinerama-devel' 'libXdamage-devel')
build_deps_alt=('clang' 'cmake' 'git' 'qt6-base-devel' 'qt6-declarative-devel' 'qt6-httpserver-devel' 'qt6-tools-devel' 'qt6-qt5compat-devel' 'libpng-devel' 'libjpeg-devel' 'lzo-devel' 'openldap-devel' 'pam-devel' 'procps-devel' 'libXtst-devel' 'libXrandr-devel' 'libXinerama-devel' 'libXdamage-devel')
build_deps_arch=('clang' 'cmake' 'git' 'qt6-base' 'qt6-declarative' 'qt6-httpserver' 'qt6-tools' 'qt6-5compat' 'libpng' 'libjpeg-turbo' 'lzo' 'libldap' 'pam' 'procps-ng' 'libxtst' 'libxrandr' 'libxinerama' 'libxdamage')
build_deps_debian=('clang' 'cmake' 'git' 'qt6-base-dev' 'qt6-declarative-dev' 'qt6-httpserver-dev' 'qt6-tools-dev' 'qt6-5compat-dev' 'libpng-dev' 'libjpeg-dev' 'liblzo2-dev' 'libldap2-dev' 'libpam0g-dev' 'libprocps-dev' 'libxtst-dev' 'libxrandr-dev' 'libxinerama-dev' 'libxdamage-dev')
build_deps_fedora=("${build_deps[@]}")
build_deps_redos=("${build_deps_fedora[@]}")
build_deps_rhel=("${build_deps_fedora[@]}")
build_deps_rosa=("${build_deps_fedora[@]}")
build_deps_alpine=('clang' 'cmake' 'git' 'qt6-qtbase-dev' 'qt6-qtdeclarative-dev' 'qt6-qthttpserver-dev' 'qt6-qttools-dev' 'qt6-qt5compat-dev' 'libpng-dev' 'libjpeg-turbo-dev' 'lzo-dev' 'openldap-dev' 'linux-pam-dev' 'procps-ng-dev' 'libxtst-dev' 'libxrandr-dev' 'libxinerama-dev' 'libxdamage-dev')
opt_deps=('kf5-kldap: KDE support')
opt_deps_alt=('kf5-kldap: KDE support')
opt_deps_arch=('kldap: KDE support')
opt_deps_debian=('libkf5ldap-dev: KDE support')
opt_deps_fedora=("${opt_deps[@]}")
opt_deps_redos=("${opt_deps_fedora[@]}")
opt_deps_rhel=("${opt_deps_fedora[@]}")
opt_deps_rosa=("${opt_deps_fedora[@]}")
opt_deps_alpine=('kldap: KDE support')
sources=(
"git+https://github.com/veyon/veyon.git#tag=v${version}"
'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'
)
checksums=(
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
)
prepare() {
cd "$srcdir/$name"
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
cd "$srcdir/$name"
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
cd "$srcdir/$name"
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 "$name" \
-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 -j$(($(nproc) - 1))
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
files() {
files-find-bin
files-find-lib
files-find-share
}