add MIT license, podtui-bin AUR PKGBUILD, fix README install sections
This commit is contained in:
33
packaging/aur/.SRCINFO
Normal file
33
packaging/aur/.SRCINFO
Normal file
@@ -0,0 +1,33 @@
|
||||
pkgbase = podtui-bin
|
||||
pkgdesc = Terminal podcast and audio player with synchronized audio-waveform visualization
|
||||
pkgver = 0.2.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/mikefreno/podtui
|
||||
arch = x86_64
|
||||
arch = aarch64
|
||||
license = MIT
|
||||
depends = mpv
|
||||
provides = podtui
|
||||
conflicts = podtui
|
||||
options = !strip
|
||||
source_x86_64 = https://github.com/mikefreno/podtui/releases/download/v0.2.0/podtui-linux-x64.tar.gz
|
||||
sha256sums_x86_64 = 5c2be309341bda9550ad7669b48d3f46341c687234ddfaa0c84a6a9177f049fc
|
||||
source_aarch64 = https://github.com/mikefreno/podtui/releases/download/v0.2.0/podtui-linux-arm64.tar.gz
|
||||
sha256sums_aarch64 = c9c22d3a18cd192f89fbd5ff712d3502c4de0cce7550156c6a0d48d76e56e0d5
|
||||
|
||||
pkgname = podtui-bin
|
||||
pkgver = 0.2.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/mikefreno/podtui
|
||||
pkgdesc = Terminal podcast and audio player with synchronized audio-waveform visualization
|
||||
arch = x86_64
|
||||
arch = aarch64
|
||||
license = MIT
|
||||
depends = mpv
|
||||
provides = podtui
|
||||
conflicts = podtui
|
||||
options = !strip
|
||||
source_x86_64 = https://github.com/mikefreno/podtui/releases/download/v0.2.0/podtui-linux-x64.tar.gz
|
||||
sha256sums_x86_64 = 5c2be309341bda9550ad7669b48d3f46341c687234ddfaa0c84a6a9177f049fc
|
||||
source_aarch64 = https://github.com/mikefreno/podtui/releases/download/v0.2.0/podtui-linux-arm64.tar.gz
|
||||
sha256sums_aarch64 = c9c22d3a18cd192f89fbd5ff712d3502c4de0cce7550156c6a0d48d76e56e0d5
|
||||
42
packaging/aur/PKGBUILD
Normal file
42
packaging/aur/PKGBUILD
Normal file
@@ -0,0 +1,42 @@
|
||||
# Maintainer: Michael Freno <michael.freno@gmail.com>
|
||||
# Contributor: Michael Freno <michael.freno@gmail.com>
|
||||
# podtui-bin — TUI podcast/audiobook player with synchronized audio-waveform
|
||||
# visualization. Serves the official standalone release binary and its two FFI
|
||||
# sibling libraries (libcavacore.so + libopentui.so) from GitHub Releases.
|
||||
#
|
||||
# The embedded Bun runtime is statically linked into the binary — no Bun, no
|
||||
# fftw needed at runtime (fftw3 is linked statically into libcavacore.so).
|
||||
|
||||
pkgname=podtui-bin
|
||||
_pkgname=podtui
|
||||
pkgver=0.2.0
|
||||
pkgrel=1
|
||||
pkgdesc="Terminal podcast and audio player with synchronized audio-waveform visualization"
|
||||
url="https://github.com/mikefreno/podtui"
|
||||
arch=('x86_64' 'aarch64')
|
||||
license=('MIT')
|
||||
depends=('mpv') # sole audio backend; no-op without it
|
||||
provides=("${_pkgname}")
|
||||
conflicts=("${_pkgname}")
|
||||
options=('!strip') # standalone binary, pre-minified
|
||||
source_x86_64=("https://github.com/mikefreno/podtui/releases/download/v${pkgver}/podtui-linux-x64.tar.gz")
|
||||
source_aarch64=("https://github.com/mikefreno/podtui/releases/download/v${pkgver}/podtui-linux-arm64.tar.gz")
|
||||
sha256sums_x86_64=('5c2be309341bda9550ad7669b48d3f46341c687234ddfaa0c84a6a9177f049fc')
|
||||
sha256sums_aarch64=('c9c22d3a18cd192f89fbd5ff712d3502c4de0cce7550156c6a0d48d76e56e0d5')
|
||||
|
||||
package() {
|
||||
local libdir
|
||||
|
||||
case "$CARCH" in
|
||||
x86_64) libdir="podtui-linux-x64" ;;
|
||||
aarch64) libdir="podtui-linux-arm64" ;;
|
||||
esac
|
||||
|
||||
# Binary + native FFI libs must stay side by side in /usr/lib/podtui/;
|
||||
# a /usr/bin symlink works because the embedded Bun runtime resolves
|
||||
# process.execPath through symlinks (verified against the compiled binary).
|
||||
install -Dm755 "${srcdir}/${libdir}/podtui" "${pkgdir}/usr/lib/podtui/podtui"
|
||||
install -Dm644 "${srcdir}/${libdir}/libcavacore.so" "${pkgdir}/usr/lib/podtui/libcavacore.so"
|
||||
install -Dm644 "${srcdir}/${libdir}/libopentui.so" "${pkgdir}/usr/lib/podtui/libopentui.so"
|
||||
ln -s /usr/lib/podtui/podtui "${pkgdir}/usr/bin/podtui"
|
||||
}
|
||||
60
packaging/aur/gen-srcinfo.sh
Normal file
60
packaging/aur/gen-srcinfo.sh
Normal file
@@ -0,0 +1,60 @@
|
||||
#!/bin/bash
|
||||
# gen-srcinfo.sh — emit .SRCINFO for the podtui-bin PKGBUILD without makepkg.
|
||||
# Emits the same field set/ordering makepkg --printsrcinfo produces for this
|
||||
# PKGBUILD shape (single package, per-arch source + sha256sums arrays).
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
. ./PKGBUILD
|
||||
|
||||
emit() { printf '\t%s = %s\n' "$1" "$2"; }
|
||||
emit_multi() { # $1 field, rest values
|
||||
local f="$1"
|
||||
shift
|
||||
for v in "$@"; do emit "$f" "$v"; done
|
||||
}
|
||||
|
||||
pkgbase_section() {
|
||||
echo "pkgbase = ${pkgname}"
|
||||
for f in pkgdesc pkgver pkgrel url; do
|
||||
v="${!f}"
|
||||
[ -n "${v:-}" ] && emit "$f" "$v"
|
||||
done
|
||||
[ -n "${install:-}" ] && emit install "$install"
|
||||
[ "${#arch[@]}" -gt 0 ] && emit_multi arch "${arch[@]}"
|
||||
[ "${#license[@]}" -gt 0 ] && emit_multi license "${license[@]}"
|
||||
[ "${#depends[@]}" -gt 0 ] && emit_multi depends "${depends[@]}"
|
||||
[ "${#provides[@]}" -gt 0 ] && emit_multi provides "${provides[@]}"
|
||||
[ "${#conflicts[@]}" -gt 0 ] && emit_multi conflicts "${conflicts[@]}"
|
||||
[ "${#options[@]}" -gt 0 ] && emit_multi options "${options[@]}"
|
||||
emit_arch_arrays
|
||||
}
|
||||
|
||||
emit_arch_arrays() {
|
||||
for a in "${arch[@]}"; do
|
||||
src_name="source_${a}"
|
||||
sha_name="sha256sums_${a}"
|
||||
src_val="${src_name}[@]"
|
||||
sha_val="${sha_name}[@]"
|
||||
[ "${#src_name}" -gt 0 ] && emit_multi "source_${a}" "${!src_val}"
|
||||
emit_multi "sha256sums_${a}" "${!sha_val}"
|
||||
done
|
||||
}
|
||||
|
||||
pkgbase_section
|
||||
echo ""
|
||||
echo "pkgname = ${pkgname}"
|
||||
for v in pkgver pkgrel url; do
|
||||
val="${!v}"
|
||||
[ -n "${val:-}" ] && emit "$v" "$val"
|
||||
done
|
||||
emit pkgdesc "$pkgdesc"
|
||||
[ "${#arch[@]}" -gt 0 ] && emit_multi arch "${arch[@]}"
|
||||
[ "${#license[@]}" -gt 0 ] && emit_multi license "${license[@]}"
|
||||
[ "${#depends[@]}" -gt 0 ] && emit_multi depends "${depends[@]}"
|
||||
[ "${#provides[@]}" -gt 0 ] && emit_multi provides "${provides[@]}"
|
||||
[ "${#conflicts[@]}" -gt 0 ] && emit_multi conflicts "${conflicts[@]}"
|
||||
[ "${#options[@]}" -gt 0 ] && emit_multi options "${options[@]}"
|
||||
emit_arch_arrays
|
||||
Reference in New Issue
Block a user