blob: 9bc77de7b1ca8dc9747bc5abc6475f8224a2cca8 (
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
|
# Maintainer: Dominik Adrian Grzywak <starterx4 at gmail dot com>
_job=1448928
_name=xwaylandvideobridge
pkgname=${_name}-bin
pkgver=j${_job}
pkgrel=1
pkgdesc="A tool to make it easy to stream wayland windows and screens to Xwayland applicatons that don't have native pipewire support."
arch=(x86_64)
url="https://invent.kde.org/system/${_name}"
license=(GPL2)
provides=('xwaylandvideobridge' 'pwbypass')
conflicts=('xwaylandvideobridge' 'xwaylandvideobridge-git' 'xwaylandvideobridge-cursor-mode-2-git')
depends=('qt5-base' 'qt5-x11extras' 'qt5-declarative' 'kcoreaddons5' 'kwindowsystem5' 'kwidgetsaddons5' 'knotifications5' 'ki18n5' 'gettext' 'xdg-desktop-portal' 'libxcb')
makedepends=('git' 'ostree')
optdepends=('freetype2' 'fontconfig' 'pkgconf')
source=($_name-$pkgver.flatpak #"$_name-$pkgver.flatpak::${url}/-/jobs/${_job}/artifacts/raw/${_name}.flatpak"
#↑↑↑ Error 404 - they removed ALL the artifacts as of 29 Dec 2023. My copy temporarily until new jobs are pushed. Sorry for inconvenience ↑↑↑
xwaylandvideobridge.sh)
sha512sums=('f664c408c16a34a178cb6a7bb83ad540b07520374d3ffe48643866ea676222f9b95856afd076683e21ee258c4b8ac1ed67d44a6fb917c8223b6cf9aef776d16c'
'71a5a0abff0ae6d6c8b4ff94ce1f343864b33a8e403d9f7c8d1fd7b07c0981468917f1589af7acf1e6296aa20697eda0a99fc8f2afea86cff06849a166e94d53')
prepare(){
if [ -d "${srcdir}/outdir" ]; then
# Clean the past builds #
rm -r "${srcdir}/outdir"
fi
ostree init --repo=repo --mode=archive
ostree static-delta apply-offline --repo=repo "xwaylandvideobridge-$pkgver.flatpak"
ostree checkout --repo=repo -U $(basename $(echo repo/objects/*/*.commit | cut -d/ -f3- --output-delimiter=) .commit) outdir
# Remove unwanted files
rm -r \
outdir/files/lib/cmake \
outdir/files/lib/debug \
outdir/files/share/app-info \
outdir/files/share/icons/hicolor/icon-theme.cache \
outdir/files/share/locale \
outdir/files/share/qlogging-categories5 \
outdir/files/share/runtime
}
package() {
cd outdir/files
mkdir -m 0755 -p $pkgdir/{opt/$_name,usr/bin,usr/share}
cp -dpr --no-preserve=ownership lib/* "${pkgdir}"/opt/$_name
cp -dpr --no-preserve=ownership share "${pkgdir}"/usr/
install -Dm0755 bin/$_name -t "${pkgdir}"/opt/$_name/
install -Dm0755 "${srcdir}"/$_name.sh "${pkgdir}"/usr/bin/$_name
}
|