diff options
author | zxp19821005 | 2025-01-14 18:49:21 +0800 |
---|---|---|
committer | zxp19821005 | 2025-01-14 18:49:21 +0800 |
commit | efe3cc0b31f250b89446a6f1951fd2dd9fc5ef4d (patch) | |
tree | 84ec051b40b7d64f10cb1508fd2093d1ebdf02e6 | |
download | aur-efe3cc0b31f250b89446a6f1951fd2dd9fc5ef4d.tar.gz |
update to 3.0.5
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 42 | ||||
-rw-r--r-- | stockholm-trekkers-playlist-maker.sh | 29 |
3 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3a33d621d52f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = stockholm-trekkers-playlist-maker-bin + pkgdesc = An Electron app for making video playlists.(Prebuilt version.Use system-wide electron) + pkgver = 3.0.5 + pkgrel = 1 + url = https://github.com/viggoStrom/Stockholm-Trekkers-Playlist-Maker + arch = x86_64 + license = MIT + depends = electron33 + conflicts = stockholm-trekkers-playlist-maker + options = !emptydirs + source = stockholm-trekkers-playlist-maker-3.0.5.deb::https://github.com/viggoStrom/Stockholm-Trekkers-Playlist-Maker/releases/download/v3.0.5/stockholm-trekkers-playlist-maker_3.0.5_amd64.deb + source = stockholm-trekkers-playlist-maker.sh + sha256sums = 39b3e5655885aaaf9eed9f9dc1026d59f3fcdb12da554ca6afe365fec43449c9 + sha256sums = 291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980 + +pkgname = stockholm-trekkers-playlist-maker-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3a3a57dedaed --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: zxp19821005 <zxp19821005 at 163 dot com> +pkgname=stockholm-trekkers-playlist-maker-bin +_pkgname='Stockholm Trekkers Playlist Maker' +pkgver=3.0.5 +_electronversion=33 +pkgrel=1 +pkgdesc="An Electron app for making video playlists.(Prebuilt version.Use system-wide electron)" +arch=('x86_64') +url="https://github.com/viggoStrom/Stockholm-Trekkers-Playlist-Maker" +license=('MIT') +conflicts=("${pkgname%-bin}") +prodives=("${pkgname%-bin}=${pkgver}") +depends=( + "electron${_electronversion}" +) +options=( + '!emptydirs' +) +source=( + "${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/v${pkgver}/${pkgname%-bin}_${pkgver}_amd64.deb" + "${pkgname%-bin}.sh" +) +sha256sums=('39b3e5655885aaaf9eed9f9dc1026d59f3fcdb12da554ca6afe365fec43449c9' + '291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980') +prepare() { + sed -e " + s/@electronversion@/${_electronversion}/g + s/@appname@/${pkgname%-bin}/g + s/@runname@/app/g + s/@cfgdirname@/${pkgname%-bin}/g + s/@options@/env ELECTRON_OZONE_PLATFORM_HINT=auto/g + " -i "${srcdir}/${pkgname%-bin}.sh" + bsdtar -xf "${srcdir}/data."* + sed -i "s/\/opt\/${_pkgname}\/${pkgname%-bin}/${pkgname%-bin}/g" "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" +} +package() { + install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}" + install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}" + cp -Pr --no-preserve=ownership "${srcdir}/opt/${_pkgname}/resources/app" "${pkgdir}/usr/lib/${pkgname%-bin}" + install -Dm644 "${srcdir}/usr/share/icons/hicolor/300x300/apps/${pkgname%-bin}.png" -t "${pkgdir}/usr/share/pixmaps" + install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications" +}
\ No newline at end of file diff --git a/stockholm-trekkers-playlist-maker.sh b/stockholm-trekkers-playlist-maker.sh new file mode 100644 index 000000000000..40e422ca2ee7 --- /dev/null +++ b/stockholm-trekkers-playlist-maker.sh @@ -0,0 +1,29 @@ +#!/bin/bash +set -o pipefail +_APPDIR="/usr/lib/@appname@" +_RUNNAME="${_APPDIR}/@runname@" +_CFGDIR="@cfgdirname@/" +_OPTIONS="@options@" +export PATH="${_APPDIR}:${PATH}" +export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" +export ELECTRON_IS_DEV=0 +export ELECTRON_FORCE_IS_PACKAGED=true +export ELECTRON_DISABLE_SECURITY_WARNINGS=true +export ELECTRON_OVERRIDE_DIST_PATH="/usr/bin/electron@electronversion@" +export NODE_ENV=production +export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" +export _FLAGS_FILE="${XDG_CONFIG_HOME}/${_CFGDIR}@appname@-flags.conf" +declare -a _USER_FLAGS +if [[ -f "${_FLAGS_FILE}" ]]; then + while read -r line; do + if [[ ! "${line}" =~ ^[[:space:]]*#.* ]]; then + _USER_FLAGS+=("${line}") + fi + done < "${_FLAGS_FILE}" +fi +cd "${_APPDIR}" || { echo "Failed to change directory to ${_APPDIR}"; exit 1; } +if [[ "${EUID}" -ne 0 ]] || [[ "${ELECTRON_RUN_AS_NODE}" ]]; then + exec electron@electronversion@ "${_RUNNAME}" ${_OPTIONS} "${_USER_FLAGS[@]}" "$@" +else + exec electron@electronversion@ "${_RUNNAME}" ${_OPTIONS} --no-sandbox "${_USER_FLAGS[@]}" "$@" +fi
\ No newline at end of file |