98 lines
3.2 KiB
Text
98 lines
3.2 KiB
Text
|
# Contributor: Rogério da Silva Yokomizo <me@ro.ger.io>
|
||
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||
|
# Maintainer: Rogério da Silva Yokomizo <me@ro.ger.io>
|
||
|
pkgname=looking-glass
|
||
|
_pkgver=B6
|
||
|
pkgver=6b
|
||
|
pkgrel=3
|
||
|
pkgdesc="Allows the use of a KVM configured for VGA PCI Pass-through without an attached physical monitor, keyboard or mouse"
|
||
|
url="https://looking-glass.io/"
|
||
|
arch="x86_64"
|
||
|
license="GPL-2.0-or-later"
|
||
|
makedepends="
|
||
|
cmake
|
||
|
fontconfig-dev
|
||
|
libsamplerate-dev
|
||
|
libx11-dev
|
||
|
libxcursor-dev
|
||
|
libxfixes-dev
|
||
|
libxi-dev
|
||
|
libxinerama-dev
|
||
|
libxkbcommon-dev
|
||
|
libxpresent-dev
|
||
|
libxscrnsaver-dev
|
||
|
nettle-dev
|
||
|
obs-studio-dev
|
||
|
pipewire-dev
|
||
|
pulseaudio-dev
|
||
|
samurai
|
||
|
spice-dev
|
||
|
wayland-dev
|
||
|
wayland-protocols
|
||
|
"
|
||
|
source="$pkgname-$_pkgver.tar.gz::https://looking-glass.io/artifact/$_pkgver/source
|
||
|
missing-includes.patch
|
||
|
obs-plugins-lib.patch
|
||
|
werror.patch
|
||
|
module_1075-fix-build-linux64.patch
|
||
|
module_1124-fix-build-linux610.patch
|
||
|
"
|
||
|
subpackages="$pkgname-obs $pkgname-module"
|
||
|
builddir="$srcdir/$pkgname-$_pkgver"
|
||
|
options="!check" # There are no tests nor --version.
|
||
|
|
||
|
build() {
|
||
|
cmake -S client -B build-client -G Ninja \
|
||
|
-DENABLE_BACKTRACE=OFF \
|
||
|
-DOPTIMIZE_FOR_NATIVE=OFF \
|
||
|
-DCMAKE_INSTALL_PREFIX=/usr
|
||
|
|
||
|
cmake -S obs -B build-obs -G Ninja \
|
||
|
-DENABLE_BACKTRACE=OFF \
|
||
|
-DOPTIMIZE_FOR_NATIVE=OFF \
|
||
|
-DCMAKE_INSTALL_PREFIX=/usr
|
||
|
|
||
|
cmake --build build-client
|
||
|
cmake --build build-obs
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
DESTDIR="$pkgdir" cmake --install build-client
|
||
|
DESTDIR="$pkgdir" cmake --install build-obs
|
||
|
}
|
||
|
|
||
|
module() {
|
||
|
pkgdesc="Looking Glass kernel module (AKMS)"
|
||
|
depends="akms"
|
||
|
install_if="looking-glass=$pkgver-r$pkgrel"
|
||
|
_modver=$(awk -F "=" '{if($1=="PACKAGE_VERSION"){print $2}}' src/looking-glass-B6/module/dkms.conf | tr -d '"')
|
||
|
|
||
|
install -Dm644 "$builddir"/module/Makefile "$subpkgdir"/usr/src/looking-glass/Makefile
|
||
|
install -Dm644 "$builddir"/module/kvmfr* "$subpkgdir"/usr/src/looking-glass/.
|
||
|
|
||
|
cat ->> "$subpkgdir"/usr/src/looking-glass/AKMBUILD <<EOF
|
||
|
modname=kvmfr
|
||
|
modver=$_modver
|
||
|
built_modules='kvmfr.ko'
|
||
|
EOF
|
||
|
|
||
|
chmod -R u=rwX,go=rX-w "$subpkgdir"/usr/src/looking-glass
|
||
|
mkdir -p "$subpkgdir"/etc/udev/rules.d
|
||
|
echo 'SUBSYSTEM=="kvmfr", OWNER="root", GROUP="kvm", MODE="0660"' > "$subpkgdir"/etc/udev/rules.d/99-kvmfr.rules
|
||
|
|
||
|
}
|
||
|
|
||
|
obs() {
|
||
|
pkgdesc="$pkgdesc (obs plugin)"
|
||
|
amove usr/lib/obs-plugins
|
||
|
}
|
||
|
|
||
|
sha512sums="
|
||
|
558981d6b32098076ef0775a748da349941551352cbef836e37310e43e5cd6072df3dec6fa2418a9abecc7729ef0c1c6869e3168d05a3d76bea46c6eb8c4e82c looking-glass-B6.tar.gz
|
||
|
6d2449764a8316dd3c1b5cc0aa552671068f89ed2f95297f3c5256af8529b93e5ec7af8f979bd2e744fd09b11063e8a93f3ed26284f0e49294e467ca10f6e772 missing-includes.patch
|
||
|
33c5463412a16691f47d7833ebf81d7cf20c560a077dca141dcc9f02a5d6dfb676e483835f39a06012b114be9f509dda4614fe253bb1c72a0142e82dc265a5ca obs-plugins-lib.patch
|
||
|
b952d1fd284aed15bcfe7990f160dec3a4565fb5833ce339920f62de6bb46fbc09265a0a79fe80d212eecc6a1813614e1e193a8846c37e2afd18431dc3a89ca4 werror.patch
|
||
|
1b9d9f7f1054df3af43f989018aa86505ceb69052aad2e328f882a7c4ac1c6581633ea4e9e6d9ca88ce4ca38dd8e2ba00234e7eaf9bbaf50fdd40ee18b4c41ef module_1075-fix-build-linux64.patch
|
||
|
0b4540aec6595ac11c9298634a82dad968ea37024cd398d2de8c58f3128a7a3097ec03a19419ebe9df2d721ab12c2a2bb6ef1fd32d55c6fd78f7ff99ee23c5f6 module_1124-fix-build-linux610.patch
|
||
|
"
|