mirror of
https://github.com/archlinux/aur.git
synced 2026-02-09 14:34:42 +01:00
Update to 1.8.5
Automated build and publish via GitHub Actions. Co-Authored-By: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
fc626cec53
commit
c7341ca5cb
3 changed files with 82 additions and 18 deletions
17
.SRCINFO
17
.SRCINFO
|
|
@ -1,6 +1,6 @@
|
|||
pkgbase = slive
|
||||
pkgdesc = Slive is a lightweight and user-friendly application for watching live streams across multiple platforms, offering a seamless watching experience with support for popular streaming services.
|
||||
pkgver = 1.8.4
|
||||
pkgdesc = 基于Flutter的聚合直播软件,支持多平台直播源聚合与观看。
|
||||
pkgver = 1.8.5
|
||||
pkgrel = 1
|
||||
url = https://github.com/SlotSun/dart_simple_live
|
||||
arch = x86_64
|
||||
|
|
@ -10,8 +10,17 @@ pkgbase = slive
|
|||
makedepends = cmake
|
||||
makedepends = ninja
|
||||
makedepends = fvm
|
||||
makedepends = rustup
|
||||
depends = gtk3
|
||||
source = git+https://github.com/SlotSun/dart_simple_live.git#tag=v1.8.4
|
||||
sha256sums = 9c74d31b2f851a1a4bb6fa8b8bf624968baca21d1145d2b3358d8529446c0da0
|
||||
depends = libvdpau
|
||||
depends = libpulse
|
||||
depends = libxss
|
||||
depends = libarchive
|
||||
depends = alsa-lib
|
||||
depends = libva
|
||||
depends = libxv
|
||||
depends = patchelf
|
||||
source = Slive.tar.gz::https://github.com/SlotSun/dart_simple_live/releases/download/v1.8.5/Slive.tar.gz
|
||||
sha256sums = 6ae1cc82dd8dbcb375a8e7bc8db371a66a200df7a51fc84ba1adecb6452da03e
|
||||
|
||||
pkgname = slive
|
||||
|
|
|
|||
30
PKGBUILD
30
PKGBUILD
|
|
@ -1,40 +1,42 @@
|
|||
|
||||
# Maintainer: SlotSun <slot_sun@outlook.com>
|
||||
pkgname=slive
|
||||
pkgver=1.8.4
|
||||
pkgver=1.8.5
|
||||
pkgrel=1
|
||||
pkgdesc="Slive is a lightweight and user-friendly application for watching live streams across multiple platforms, offering a seamless watching experience with support for popular streaming services."
|
||||
pkgdesc="基于Flutter的聚合直播软件,支持多平台直播源聚合与观看。"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/SlotSun/dart_simple_live"
|
||||
license=('GPL-3.0-or-later')
|
||||
depends=('gtk3')
|
||||
makedepends=('git' 'clang' 'cmake' 'ninja' 'fvm')
|
||||
source=("git+${url}.git#tag=v${pkgver}")
|
||||
sha256sums=('9c74d31b2f851a1a4bb6fa8b8bf624968baca21d1145d2b3358d8529446c0da0')
|
||||
depends=('gtk3' 'libvdpau' 'libpulse' 'libxss' 'libarchive' 'alsa-lib' 'libva' 'libxv' 'patchelf')
|
||||
makedepends=('git' 'clang' 'cmake' 'ninja' 'fvm' 'rustup')
|
||||
source=("Slive.tar.gz::https://github.com/SlotSun/dart_simple_live/releases/download/v1.8.5/Slive.tar.gz")
|
||||
sha256sums=('6ae1cc82dd8dbcb375a8e7bc8db371a66a200df7a51fc84ba1adecb6452da03e')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/dart_simple_live/simple_live_app"
|
||||
cd "$srcdir/dart_simple_live-${pkgver}/simple_live_app"
|
||||
fvm install
|
||||
fvm flutter --disable-analytics
|
||||
fvm flutter --no-version-check pub get
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/dart_simple_live/simple_live_app"
|
||||
cd "$srcdir/dart_simple_live-${pkgver}/simple_live_app"
|
||||
fvm flutter build linux --release --no-pub \
|
||||
--dart-define build.version="${pkgver}"
|
||||
--dart-define build.version="${pkgver}" --verbose
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/dart_simple_live/simple_live_app"
|
||||
cd "$srcdir/dart_simple_live-${pkgver}/simple_live_app"
|
||||
# 复制构建产物
|
||||
pushd build/linux/x64/release
|
||||
install -Dm755 "bundle/Slive" -t "${pkgdir}/usr/lib/${pkgname}/"
|
||||
install -Dm755 "bundle/io.github.SlotSun.Slive" -t "${pkgdir}/usr/lib/${pkgname}/"
|
||||
cmake -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr/lib/${pkgname}" .
|
||||
cmake -P cmake_install.cmake
|
||||
popd
|
||||
# 创建启动器
|
||||
install -dm755 "${pkgdir}/usr/bin"
|
||||
ln -s "/usr/lib/${pkgname}/Slive" "${pkgdir}/usr/bin/Slive"
|
||||
ln -s "/usr/lib/${pkgname}/io.github.SlotSun.Slive" "${pkgdir}/usr/bin/Slive"
|
||||
|
||||
install -Dm644 assets/logo.png "${pkgdir}/usr/share/icons/hicolor/512x512/apps/io.github.SlotSun.dart_simple_live.png"
|
||||
install -Dm644 assets/logo.png "${pkgdir}/usr/share/icons/hicolor/512x512/apps/io.github.SlotSun.Slive.png"
|
||||
install -Dm644 "linux/packaging/aur/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications/"
|
||||
}
|
||||
}
|
||||
53
upstream.sh
Normal file
53
upstream.sh
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
pkg_detect_latest() {
|
||||
local api_url="https://api.github.com/repos/SlotSun/dart_simple_live/releases"
|
||||
local version
|
||||
version="$(curl -fsSL "${api_url}" | jq -r '.[0].tag_name | ltrimstr("v")')"
|
||||
if [[ -z "${version}" ]]; then
|
||||
echo "Failed to parse version from API response" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
printf '%s\n' "${version}"
|
||||
}
|
||||
|
||||
pkg_get_update_params() {
|
||||
local version="$1"
|
||||
local base_url="https://github.com/SlotSun/dart_simple_live/releases/download/v${version}"
|
||||
local filename="Slive.tar.gz"
|
||||
local url="${base_url}/${filename}"
|
||||
|
||||
# Download and calculate SHA256 for x86_64
|
||||
local tmpdir tmpfile sha256
|
||||
tmpdir="$(mktemp -d)"
|
||||
tmpfile="${tmpdir}/${filename}"
|
||||
|
||||
curl -fsSL --retry 3 --retry-delay 2 -o "${tmpfile}" "${url}"
|
||||
sha256="$(sha256sum "${tmpfile}" | awk '{print $1}')"
|
||||
|
||||
# Cleanup
|
||||
rm -rf "${tmpdir}"
|
||||
|
||||
# Return: url filename pkgver hash_algo checksum
|
||||
printf '%s %s %s %s %s\n' "${url}" "${filename}" "${version}" "sha256" "${sha256}"
|
||||
}
|
||||
|
||||
pkg_update_files() {
|
||||
local url="$1"
|
||||
local filename="$2"
|
||||
local pkgver="$3"
|
||||
local hash_algo="$4"
|
||||
local checksum="$5"
|
||||
local pkgbuild="${PKG_DIR}/PKGBUILD"
|
||||
|
||||
local base_url="${url%/*}"
|
||||
local url_x86_64="${base_url}/Slive.tar.gz"
|
||||
|
||||
sed -i "s/^pkgver=.*/pkgver=${pkgver}/" "${pkgbuild}"
|
||||
sed -i "s/^pkgrel=.*/pkgrel=1/" "${pkgbuild}"
|
||||
sed -i "s|^source=(\".*\")|source=(\"Slive.tar.gz::${url_x86_64}\")|" "${pkgbuild}"
|
||||
sed -i "s/^${hash_algo}sums=.*/${hash_algo}sums=('${checksum}')/" "${pkgbuild}"
|
||||
|
||||
echo "Warning: Only x86_64 checksum updated. Please verify aarch64 manually." >&2
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue