summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Pakker2020-03-28 15:54:18 +0000
committerOmar Pakker2020-03-28 15:54:18 +0000
commit6802251d6b2a43d284cac0e409fb94ca70ff256a (patch)
tree64a109d6a0c7479ed1ecd4d90d3868ce0fe29fe5
parent7022e850a5c408155e79b1b8aa1599973bfca3f0 (diff)
downloadaur-6802251d6b2a43d284cac0e409fb94ca70ff256a.tar.gz
Update to be able to build against the latest revision and package the OBS plugin.
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD48
2 files changed, 56 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 73722bac921..793c098c87d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = looking-glass-git
pkgdesc = An extremely low latency KVMFR (KVM FrameRelay) implementation for guests with VGA PCI Passthrough
- pkgver = B1.r1.g163a2e5
+ pkgver = B1.r162.gb953b2b
pkgrel = 1
epoch = 2
url = https://looking-glass.hostfission.com
@@ -13,8 +13,16 @@ pkgbase = looking-glass-git
makedepends = glu
makedepends = fontconfig
makedepends = spice-protocol
+ makedepends = libxi
+ makedepends = obs-studio
source = looking-glass::git+https://github.com/gnif/LookingGlass.git
+ source = LGMP::git+https://github.com/gnif/LGMP.git
+ source = PureSpice::git+https://github.com/gnif/PureSpice.git
+ source = https://github.com/gnif/LookingGlass/pull/246.diff
sha512sums = SKIP
+ sha512sums = SKIP
+ sha512sums = SKIP
+ sha512sums = 5f26f385aaa0a518e12ea5919c009d39d771f2bb1676126e7fd57b46e0eddb1da77bd03db542d699f7ffc69144f166c456afedfa19f77f5a114b2393b1f0e6b8
pkgname = looking-glass-git
pkgdesc = A client application for accessing the LookingGlass IVSHMEM device of a VM
@@ -38,3 +46,9 @@ pkgname = looking-glass-host-git
provides = looking-glass-host
conflicts = looking-glass-host
+pkgname = obs-plugin-looking-glass-git
+ pkgdesc = Plugin for OBS Studio to stream directly from Looking Glass without having to record the Looking Glass client
+ depends = obs-studio
+ provides = obs-plugin-looking-glass
+ conflicts = obs-plugin-looking-glass
+
diff --git a/PKGBUILD b/PKGBUILD
index 94d65e25079..6575f3f91df 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,17 +2,26 @@
_pkgname=looking-glass
pkgbase="${_pkgname}-git"
-pkgname=("${_pkgname}-git" "${_pkgname}-module-dkms-git" "${_pkgname}-host-git")
+pkgname=("${_pkgname}-git"
+ "${_pkgname}-module-dkms-git"
+ "${_pkgname}-host-git"
+ "obs-plugin-${_pkgname}-git")
epoch=2
-pkgver=B1.r1.g163a2e5
+pkgver=B1.r162.gb953b2b
pkgrel=1
pkgdesc="An extremely low latency KVMFR (KVM FrameRelay) implementation for guests with VGA PCI Passthrough"
url="https://looking-glass.hostfission.com"
arch=('x86_64')
license=('GPL2')
-makedepends=('cmake' 'git' 'sdl2_ttf' 'glu' 'fontconfig' 'spice-protocol')
-source=("${_pkgname}::git+https://github.com/gnif/LookingGlass.git")
-sha512sums=('SKIP')
+makedepends=('cmake' 'git' 'sdl2_ttf' 'glu' 'fontconfig' 'spice-protocol' 'libxi' 'obs-studio')
+source=("${_pkgname}::git+https://github.com/gnif/LookingGlass.git"
+ "LGMP::git+https://github.com/gnif/LGMP.git"
+ "PureSpice::git+https://github.com/gnif/PureSpice.git"
+ "https://github.com/gnif/LookingGlass/pull/246.diff")
+sha512sums=('SKIP'
+ 'SKIP'
+ 'SKIP'
+ '5f26f385aaa0a518e12ea5919c009d39d771f2bb1676126e7fd57b46e0eddb1da77bd03db542d699f7ffc69144f166c456afedfa19f77f5a114b2393b1f0e6b8')
install="${pkgbase}.install"
pkgver() {
@@ -22,11 +31,26 @@ pkgver() {
printf "%s.%s" "${TAG//-/}" "${SUFFIX}"
}
+prepare() {
+ cd "${_pkgname}"
+
+ git submodule init
+ git config submodule.LGMP.url "${srcdir}/LGMP"
+ git config submodule.repos/PureSpice.url "${srcdir}/PureSpice"
+ git submodule update
+
+ # PR-246: [host] xcb: Fixed CaptureInterface definition
+ patch -p1 < "${srcdir}/246.diff"
+}
+
build() {
cd "${srcdir}/${_pkgname}"
- for b in {client,c-host}; do
+ for b in {client,c-host,obs}; do
pushd "${b}"
- cmake -DCMAKE_INSTALL_PREFIX=/usr .
+ # CFLAGS for https://github.com/gnif/PureSpice/issues/1
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_C_FLAGS="-O0" \
+ .
make
popd
done
@@ -63,3 +87,13 @@ package_looking-glass-host-git() {
cd "${srcdir}/${_pkgname}/c-host"
make DESTDIR="${pkgdir}" install
}
+
+package_obs-plugin-looking-glass-git() {
+ pkgdesc="Plugin for OBS Studio to stream directly from Looking Glass without having to record the Looking Glass client"
+ depends=('obs-studio')
+ provides=("obs-plugin-${_pkgname}")
+ conflicts=("obs-plugin-${_pkgname}")
+
+ cd "${srcdir}/${_pkgname}/obs"
+ install -Dm644 "liblooking-glass-obs.so" "${pkgdir}/usr/lib/obs-plugins/liblooking-glass-obs.so"
+}