vacuumtube-bin: add package (1.8.1-1)
This commit is contained in:
1 parent
78ed7f1c67
commit
051b93e662
3 files changed
+75
No files matched your search
@@ -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
|
||||||
@@ -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"
|
||||||
|
}
|
||||||
@@ -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 <version> <pkgbuild-path>
|
||||||
|
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"
|
||||||
|
}
|
||||||
Reference in new issue
Block a user