From eda220d87887c35419eba4e277c8632943c3d9cc Mon Sep 17 00:00:00 2001 From: Kevin McConnell Date: Fri, 2 Oct 2026 15:56:54 +0100 Subject: [PATCH] Update gliff to 0.2.0 gliff now lives at omacom/gliff and cuts tagged releases, so build the tag archive instead of a pinned commit and watch its tags. The codec moved to VA-API: add libva, and dbus for notifications. Install the launcher entry and icon, with the icon cache hook, and ship the OpenH264 license. --- pkgbuilds/gliff/.omarchy/package.json | 11 +++++- pkgbuilds/gliff/PKGBUILD | 56 +++++++++++++++++---------- pkgbuilds/gliff/gliff.install | 12 ++++++ 3 files changed, 58 insertions(+), 21 deletions(-) create mode 100644 pkgbuilds/gliff/gliff.install diff --git a/pkgbuilds/gliff/.omarchy/package.json b/pkgbuilds/gliff/.omarchy/package.json index 2a9719d..89929ac 100644 --- a/pkgbuilds/gliff/.omarchy/package.json +++ b/pkgbuilds/gliff/.omarchy/package.json @@ -1,3 +1,12 @@ { - "source": "local" + "source": "local", + "upstream": { + "git_tags": "https://github.com/omacom/gliff.git", + "tag_pattern": "v{pkgver}", + "sources": { + "any": [ + "https://github.com/omacom/gliff/archive/refs/tags/{tag}.tar.gz" + ] + } + } } diff --git a/pkgbuilds/gliff/PKGBUILD b/pkgbuilds/gliff/PKGBUILD index c9d957b..5952512 100644 --- a/pkgbuilds/gliff/PKGBUILD +++ b/pkgbuilds/gliff/PKGBUILD @@ -1,53 +1,69 @@ -# Maintainer: David Heinemeier Hansson +# Maintainer: Kevin McConnell pkgname=gliff -pkgver=0.1.0 +pkgver=0.2.0 pkgrel=1 -pkgdesc="Hyprland remote desktop over SSH (Vulkan Video, 4:4:4)" +pkgdesc='Hyprland remote desktop over SSH (GPU H.264, 4:4:4)' arch=('x86_64') -url="https://github.com/kevinmcconnell/gliff" -license=('MIT') -depends=('gcc-libs' 'glibc' 'wayland' 'libxkbcommon' 'libdrm' 'mesa' - 'gtk4>=4.14' 'libadwaita>=1.5' 'vulkan-icd-loader' 'openssh') -makedepends=('cargo' 'pkgconf') -optdepends=('vulkan-radeon: Vulkan Video on AMD' - 'vulkan-intel: Vulkan Video on Intel' +url='https://github.com/omacom/gliff' +license=('MIT' 'BSD-2-Clause') +install='gliff.install' +options=('!debug' '!lto') +depends=( + 'dbus' + 'gcc-libs' + 'glibc' + 'gtk4>=4.14' + 'hicolor-icon-theme' + 'libadwaita>=1.5' + 'libdrm' + 'libva>=2.20' + 'libxkbcommon' + 'mesa' + 'openssh' + 'vulkan-icd-loader' + 'wayland' +) +makedepends=('cargo' 'pkgconf' 'nasm') +optdepends=('vulkan-radeon: Vulkan compute on AMD' + 'vulkan-intel: Vulkan compute on Intel' + 'intel-media-driver: VA-API H.264 codec on Intel' 'vulkan-tools: vulkaninfo for debugging' + 'libva-utils: vainfo for debugging' 'vulkan-validation-layers: driver call validation for development') -options=('!debug') - -# Upstream only publishes a rolling prerelease; pin its source for reproducible builds. -_commit=2edbfba52780c7ace15dbb05ca92177f493d4bc9 -source=("$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz") -sha256sums=('2d75961085a72fb8e34149de63e312a7336daa70fd6e157e30c2cd08c14eb1c7') +source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") +sha256sums=('e2c2e6754badff93e4ea4878d0137919870ce8c303ab6da6f962b7ce6f3f80a6') prepare() { - cd "$pkgname-$_commit" + cd "$pkgname-$pkgver" cargo fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { - cd "$pkgname-$_commit" + cd "$pkgname-$pkgver" export CARGO_TARGET_DIR=target cargo build --frozen --release } check() { - cd "$pkgname-$_commit" + cd "$pkgname-$pkgver" export CARGO_TARGET_DIR=target cargo test --frozen --release --workspace } package() { - cd "$pkgname-$_commit" + cd "$pkgname-$pkgver" install -Dm755 target/release/gliff "$pkgdir/usr/bin/gliff" install -Dm755 target/release/gliff-server "$pkgdir/usr/bin/gliff-server" install -Dm755 target/release/gliff-probe "$pkgdir/usr/bin/gliff-probe" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dm644 NOTICE "$pkgdir/usr/share/licenses/$pkgname/NOTICE" + install -Dm644 pkgbuild/gliff.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/gliff.svg" + install -Dm644 pkgbuild/gliff.desktop "$pkgdir/usr/share/applications/gliff.desktop" install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" install -Dm644 docs/hardware-quirks.md "$pkgdir/usr/share/doc/$pkgname/hardware-quirks.md" } diff --git a/pkgbuilds/gliff/gliff.install b/pkgbuilds/gliff/gliff.install new file mode 100644 index 0000000..5357602 --- /dev/null +++ b/pkgbuilds/gliff/gliff.install @@ -0,0 +1,12 @@ +post_install() { + command -v update-desktop-database >/dev/null 2>&1 && update-desktop-database -q + command -v gtk-update-icon-cache >/dev/null 2>&1 && gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +}