blob: 3775f704e698913b72933dcc87fa3c4dee56b8e1 (
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Maintainer: C. R. <crdaley at gmail>
# Contributor: Chris Rizzitello <sithlord48@gmail.com>
# Contributor: Lahfa Samy <akechishiro-aur@lahfa.xyz>
# Contributor: Chih-Hsuan Yen <base64_decode("eWFuMTIxMjUgQVQgYXJjaGxpbnV4IERPVCBvcmc=")>
# Forked from aur/barrier-git
# Contributor: Pellegrino Prevete <pellegrinoprevete@gmail.com>
_pkgname=input-leap
pkgbase=$_pkgname-git
pkgname=($_pkgname-headless-git $_pkgname-git)
pkgver=3.0.1
pkgrel=1
pkgdesc="Open-source KVM software"
arch=(x86_64)
url="https://github.com/input-leap/input-leap"
license=("custom:GPL2WithOpenSSLException")
source=("${_pkgname}::git+${url}.git")
sha512sums=('SKIP')
_core_deps=(glibc gcc-libs libx11 libxrandr libxext libxinerama xorgproto libxtst libxi openssl libei libportal)
_gui_deps=(glibc gcc-libs libx11 openssl avahi qt6-base xdg-desktop-portal)
makedepends=(${_core_deps[@]} ${_gui_deps[@]}
# referenced in CMakeLists.txt but does not seem to be actually used
libsm libice qt6-tools
git cmake gmock gtest)
optdepends=(libportal-gtk3 libportal-gtk4 libportal-qt5 libportal-qt6)
pkgver() {
cd $_pkgname
git describe --tags | sed 's/-/+/g;s/^v//'
}
prepare() {
cd $_pkgname
git submodule init
}
build() {
cmake -B build -S $_pkgname \
-D CMAKE_VERBOSE_MAKEFILE:BOOL=true \
-D CMAKE_BUILD_TYPE:STRING=None \
-D CMAKE_INSTALL_PREFIX:STRING=/usr \
-D INPUTLEAP_VERSION_STAGE:STRING=snapshot \
-D INPUTLEAP_USE_EXTERNAL_GTEST:bool=true \
-D INPUTLEAP_BUILD_LIBEI=TRUE \
-D QT_DEFAULT_MAJOR_VERSION=6
cmake --build build
}
_package_common() {
# Install binaries:
DESTDIR="${pkgdir}" cmake --install build
# Install the license:
cd $_pkgname
install -Dm644 -D LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
package_input-leap-headless-git() {
pkgdesc+=" (client and server CLI binaries)"
depends=(${_core_deps[@]})
provides=("input-leap-headless=$pkgver" "barrier-headless=$pkgver")
conflicts=(input-leap-headless barrier-headless)
# Install all the files:
_package_common
# Install the manpages:
install -Dm644 doc/*.1 -t "$pkgdir"/usr/share/man/man1
# Install the examples:
install -Dm644 doc/input-leap.conf* -t "$pkgdir"/usr/share/doc/$pkgname
# Now go and delete the GUI-related files:
for file in /usr/bin/input-leap /usr/share/applications /usr/share/icons /usr/share/metainfo; do
rm -rv "${pkgdir}/${file}"
done
}
package_input-leap-git() {
pkgdesc+=" (GUI)"
depends=(input-leap-headless-git ${_gui_deps[@]})
provides=("input-leap=$pkgver" "barrier=$pkgver")
conflicts=(input-leap barrier)
# Install all the files:
_package_common
# Now go and delete files that are already in
# input-leap-headless-git:
for file in /usr/bin/input-leap{s,c} /usr/share/man; do
rm -rv "${pkgdir}/${file}"
done
}
|