From 051b93e66238346d400e3757fc65416dd4e07eea Mon Sep 17 00:00:00 2001 From: Felitendo <95575686+Felitendo@users.noreply.github.com> Date: Fri, 24 Jul 2026 09:13:19 +0200 Subject: [PATCH] vacuumtube-bin: add package (1.8.1-1) --- vacuumtube-bin/.SRCINFO | 27 +++++++++++++++++++++++++++ vacuumtube-bin/PKGBUILD | 27 +++++++++++++++++++++++++++ vacuumtube-bin/pkg.sh | 21 +++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 vacuumtube-bin/.SRCINFO create mode 100644 vacuumtube-bin/PKGBUILD create mode 100644 vacuumtube-bin/pkg.sh diff --git a/vacuumtube-bin/.SRCINFO b/vacuumtube-bin/.SRCINFO new file mode 100644 index 0000000..b3ae0fe --- /dev/null +++ b/vacuumtube-bin/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = vacuumtube-bin + pkgdesc = YouTube Leanback (TV UI) in Electron, with a built-in adblocker (upstream binary) + pkgver = 1.8.1 + pkgrel = 1 + url = https://github.com/shy1132/VacuumTube + arch = x86_64 + license = MIT + depends = gtk3 + depends = nss + depends = alsa-lib + depends = libnotify + depends = libxss + depends = libxtst + depends = xdg-utils + depends = at-spi2-core + depends = util-linux-libs + depends = libsecret + optdepends = libappindicator-gtk3: tray icon support + provides = vacuumtube + conflicts = vacuumtube + noextract = vacuumtube-bin-1.8.1.deb + options = !strip + options = !debug + source = vacuumtube-bin-1.8.1.deb::https://github.com/shy1132/VacuumTube/releases/download/v1.8.1/VacuumTube-amd64.deb + sha256sums = 652be4e29e85ed31d3a1bae4dad00e6d39967ad0cf7cc47547b0ec94bacd0d51 + +pkgname = vacuumtube-bin diff --git a/vacuumtube-bin/PKGBUILD b/vacuumtube-bin/PKGBUILD new file mode 100644 index 0000000..0247074 --- /dev/null +++ b/vacuumtube-bin/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Felitendo +# This PKGBUILD is updated automatically: +# https://github.com/Felitendo/PKGBUILDS + +pkgname=vacuumtube-bin +pkgver=1.8.1 +pkgrel=1 +pkgdesc="YouTube Leanback (TV UI) in Electron, with a built-in adblocker (upstream binary)" +arch=('x86_64') +url="https://github.com/shy1132/VacuumTube" +license=('MIT') +depends=('gtk3' 'nss' 'alsa-lib' 'libnotify' 'libxss' 'libxtst' 'xdg-utils' + 'at-spi2-core' 'util-linux-libs' 'libsecret') +optdepends=('libappindicator-gtk3: tray icon support') +provides=('vacuumtube') +conflicts=('vacuumtube') +options=('!strip' '!debug') +source=("${pkgname}-${pkgver}.deb::https://github.com/shy1132/VacuumTube/releases/download/v${pkgver}/VacuumTube-amd64.deb") +noextract=("${pkgname}-${pkgver}.deb") +sha256sums=('652be4e29e85ed31d3a1bae4dad00e6d39967ad0cf7cc47547b0ec94bacd0d51') + +package() { + bsdtar -xOf "$srcdir/${pkgname}-${pkgver}.deb" 'data.tar.*' \ + | bsdtar -xpf - -C "$pkgdir" --exclude './usr/share/doc' ./opt ./usr + install -d "$pkgdir/usr/bin" + ln -s /opt/VacuumTube/vacuumtube "$pkgdir/usr/bin/vacuumtube" +} diff --git a/vacuumtube-bin/pkg.sh b/vacuumtube-bin/pkg.sh new file mode 100644 index 0000000..31946c3 --- /dev/null +++ b/vacuumtube-bin/pkg.sh @@ -0,0 +1,21 @@ +# vacuumtube-bin - VacuumTube (https://github.com/shy1132/VacuumTube), +# YouTube Leanback (TV UI) wrapper, Electron. +# +# Upstream publishes a bundled .deb per release, so there is no +# build_artifact() here: on a new version only pkgver and the checksum are +# refreshed and the PKGBUILD repackages the deb directly. + +UPSTREAM_REPO="shy1132/VacuumTube" + +latest_version() { + gh api "repos/$UPSTREAM_REPO/releases/latest" --jq '.tag_name' | sed 's/^v//' +} + +# refresh_checksums +refresh_checksums() { + local ver="$1" pkgbuild="$2" + local sha + sha="$(curl -sfL "https://github.com/$UPSTREAM_REPO/releases/download/v$ver/VacuumTube-amd64.deb" \ + | sha256sum | cut -d' ' -f1)" + sed -i "s|^sha256sums=.*|sha256sums=('$sha')|" "$pkgbuild" +}