catacomb/PKGBUILD
Luna 0d7ae83873 Web UI: move downloads from bottom bar to ⬇ modal
The fixed bottom #jobs bar ate up to 40vh of screen real estate even
when only one job was running, and on mobile it competed with the URL
input. Replace it with a ⬇ button in the header that:

- shows a badge with active+queued count (turns accent-colored when >0)
- opens a modal listing all jobs when clicked (or with the 'd' shortcut)
- repaints live from the same WS/polling snapshot that drove the old bar

The footer URL input + quality picker stay where they are — that's the
entry point, not the status display.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 02:03:58 -07:00

48 lines
1.5 KiB
Bash

# Maintainer: InannaBeloved <anassaeneroi@pm.me>
pkgname=yt-offline
pkgver=0.1.0
pkgrel=1
pkgdesc="Self-hosted archive for YouTube, TikTok, Twitch, Vimeo, Bandcamp, SoundCloud, Odysee and more. Desktop GUI + web UI."
arch=('x86_64' 'aarch64')
url="https://codeberg.org/anassaeneroi/yt-offline"
license=('AGPL-3.0-only')
depends=(
'yt-dlp'
'ffmpeg'
'mpv'
'sqlite'
'libxcb'
'xdg-utils'
)
optdepends=(
'libnotify: desktop notifications when downloads finish'
)
makedepends=('rust' 'cargo')
options=('!lto') # rusqlite bundled sqlite cannot be LTO-linked with rust-lld
source=("git+https://codeberg.org/anassaeneroi/yt-offline.git#branch=main")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
# 0.1.0.r12.gabcdef0 — last tag, commits since, short hash
git describe --long --tags --always 2>/dev/null \
| sed 's/^v//; s/\([^-]*-g\)/r\1/; s/-/./g' \
|| printf "0.1.0.r%s.g%s" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}
build() {
cd "$pkgname"
cargo build --release --frozen
}
package() {
cd "$pkgname"
install -Dm755 target/release/yt-offline "$pkgdir/usr/bin/yt-offline"
install -Dm644 youtube-backup.desktop "$pkgdir/usr/share/applications/yt-offline.desktop"
install -Dm644 icon.png "$pkgdir/usr/share/pixmaps/yt-offline.png"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}