Compare commits

...

3 Commits

Author SHA1 Message Date
Alfred Wingate c5fde9b51b
app-misc/spicetify-cli: add 2.33.1
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2024-03-01 03:46:00 +02:00
Alfred Wingate 9dbd087b84
media-gfx/figma-bin: add 0.11.3
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2024-03-01 03:42:44 +02:00
Alfred Wingate 474f62917d
bintron-r1.eclass: add BINTRON_NAME
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2024-03-01 03:42:11 +02:00
5 changed files with 151 additions and 4 deletions

View File

@ -2,3 +2,5 @@ DIST spicetify-cli-2.32.1-deps.tar.xz 5177652 BLAKE2B c4cdef807994bb790aea0d93d1
DIST spicetify-cli-2.32.1.tar.gz 2013739 BLAKE2B acd6508fd3fca794c9ba78a94811d0c32d2d5df1e3c2c4e293eaec6736cd73b843172641fd177a4c9f40af579c7c00cb8a3581f0ce633660a3e0ced12176b2fc SHA512 202a8e6ecb988beca89c49af8d1e95dec4b84de9718dd7d5fbf16498fb9b7b34113a20e4448f4a0e97dff819de7dbfb8b39ab43ebbc950ad12ae23290771f64f
DIST spicetify-cli-2.33.0-deps.tar.xz 5178312 BLAKE2B 94b3c74fc7679b019d65f408cf698cb389a045c76c2870e16d1322c38808cda326139ff85527f41c0690e42951cad2e20bec02bddd8b730d7f525891a1cf6372 SHA512 4ec120b84e7745f7419d5f4c44aa139f9204f0b9a61cb559f3366c55f315cfb3a8db51ae44899544ea25cdbafcfdd0933902a3e107f9b569959d2f41f00536c1
DIST spicetify-cli-2.33.0.tar.gz 2010437 BLAKE2B e8ef73ee9b86be1f98c7ad9feca1dc7c6baac423c31ba60f3fefe64d46fc35379335e926bc79286dfcc3e2d6aa7b9c80e4be26f3503e78b468ad341018a50827 SHA512 4d310d4dc3394ea8d9e9a802e66956894aeca8f9f0e14ffc403421a004fab092870c8a3d4451a07be7459d04ce2e7ba7eebe779a480a56d9838c8225101af724
DIST spicetify-cli-2.33.1-deps.tar.xz 5177772 BLAKE2B 5b697aea4f27d33426aada4327ca1e42c6a11808562579b5d20c24a0ebad2e2a92fdb9e747c32f528034d36fdd6c6c647f23e129150d625e9d4bf45ca1a2385f SHA512 daf626762f3409f0d57088ac3187c828e6f2e35170222599b28cf9044dcb5e708feca797515f3a0acb8c8922364ca8e99eb76005ffdc7e99c77730d1f525c66d
DIST spicetify-cli-2.33.1.tar.gz 2010520 BLAKE2B 8a197a03258fe77efe72161d5dbbb1387c21681cabbb045cbaf742c35351abc6b57e7c7b3a966f26d7974bdf7f69e82cbae0e62a0887b2c13282ab82f1a9c3fd SHA512 3ff3ac4929aa440b68be56c7ed14b0e3f55ae07f15fd40fec1f0de3255ae02bfd4eba9650490ed6bf36c3fbd2e3de19caffc7b8db0846caba485c735c735e168

View File

@ -0,0 +1,99 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
WHITELIST_VERSIONS=(
"<> 1.2.8 1.2.32"
)
whitelist_versions() {
local version_spec version1 version2
local -a deps
SPOTIFY_VERSIONS=
# Iterate in reverse for elog
for ((index = $(( ${#WHITELIST_VERSIONS[@]} - 1 )); index >= 0; index--)); do
read -r version_spec version1 version2 <<< "${WHITELIST_VERSIONS[${index}]}"
case ${version_spec} in
"<>")
deps[$index]="( <=media-sound/spotify-${version2} >=media-sound/spotify-${version1} )"
SPOTIFY_VERSIONS+="${version1} -> ${version2}"
;;
"~")
deps[$index]="~media-sound/spotify-${version1}"
SPOTIFY_VERSIONS+="${version1}"
;;
*)
die "Invalid version specifier in WHITELIST_VERSIONS"
;;
esac
if [[ ${index} == 0 ]]; then
SPOTIFY_VERSIONS+=". "
elif [[ ${index} == 1 ]]; then
SPOTIFY_VERSIONS+=" and "
else
SPOTIFY_VERSIONS+=", "
fi
done
RDEPEND=" || ( ${deps[@]} )"
}
whitelist_versions
DESCRIPTION="Commandline tool to customize Spotify client."
HOMEPAGE="https://spicetify.app/"
SRC_URI="
https://github.com/spicetify/spicetify-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://gitlab.com/api/v4/projects/37881342/packages/generic/${PN}/${PV}/${P}-deps.tar.xz
"
LICENSE="Apache-2.0 BSD LGPL-2.1 MIT"
SLOT="0"
KEYWORDS="~amd64"
# no tests
RESTRICT="test"
INSTALLDIR="/opt/${PN}"
src_compile() {
ego build -ldflags "-X main.version=${PV}"
}
src_install() {
insinto "${INSTALLDIR}"
doins -r {CustomApps,Extensions,Themes,jsHelper,spicetify-cli}
dobin "${FILESDIR}/spicetify"
fperms +x "${INSTALLDIR}/spicetify-cli"
}
pkg_postinst() {
elog "Spicetify requires a Spotify install that it can modify."
elog "To give read and write permissions to everyone on the system to run the following commands as root."
elog "# chmod a+wr /opt/spotify/spotify-client"
elog "# chmod a+wr /opt/spotify/spotify-client/Apps -R"
elog ""
elog "WARNING: Do not run spicetify as root please"
elog ""
elog "Spicetify compatibility is limited to the following Spotify versions:"
elog " ${SPOTIFY_VERSIONS}"
elog ""
elog "Otherwise you can install spotify to a user modifiable location like as a flatpak:"
elog " https://spicetify.app/docs/advanced-usage/installation#spotify-installed-from-flatpak"
elog ""
elog "To install themes see:"
elog " https://spicetify.app/docs/advanced-usage/themes"
if $(has_version -r ">=media-sound/spotify-1.2.25"); then
elog ""
elog "The New Releases custom app no longer works with Spotify 1.2.25 and higher. As an alternative,"
elog "please use What's New which was created by Spotify and can be enabled via Experimental Features"
elog "if it isn't already enabled."
fi
}

View File

@ -74,15 +74,21 @@ IDEPEND="
QA_PREBUILT='*'
QA_PRESTRIPPED='*'
# @ECLASS_VARIABLE: BINTRON_NAME
# @PRE_INHERIT
# @DESCRIPTION:
# Name of the package
: ${BINTRON_NAME:="${PN}"}
# @ECLASS_VARIABLE: BINTRON_HOME
# @DESCRIPTION:
# Path where the package contents will we installed.
: ${BINTRON_HOME:="/opt/${PN}/"}
: ${BINTRON_HOME:="/opt/${BINTRON_NAME}/"}
# @ECLASS_VARIABLE: BINTRON_EXECUTABLES
# @DESCRIPTION:
# List of executable symlinks to create
: ${BINTRON_EXECUTABLES:="${PN}"}
: ${BINTRON_EXECUTABLES:="${BINTRON_NAME}"}
# @FUNCTION: bintron-r1_pkg_pretend
# @DESCRIPTION:
@ -102,8 +108,8 @@ bintron-r1_src_prepare() {
chromium_remove_language_paks
popd >/dev/null || die "location reset for language cleanup failed"
if [[ -d "${WORKDIR}/usr/share/doc/${PN}" ]]; then
mv "${WORKDIR}/usr/share/doc/${PN}/" "${WORKDIR}/usr/share/doc/${PF}" || die
if [[ -d "${WORKDIR}/usr/share/doc/${BINTRON_NAME}" ]]; then
mv "${WORKDIR}/usr/share/doc/${BINTRON_NAME}/" "${WORKDIR}/usr/share/doc/${PF}" || die
fi
if [[ -e "${WORKDIR}/usr/share/doc/${PF}/changelog.gz" ]]; then

View File

@ -1,2 +1,4 @@
DIST figma-bin-0.8.1-amd64.zip 145418083 BLAKE2B 7fbab84a192a0f1a9b9c63ae8d54083692b4551a5fe79126c66092a6ec83ebf193c02e025d5f256794ffcb08712fbe6b2027abecdcc05885c40a75920fd93760 SHA512 9bef661eca3b59f91dea13ea99f72b1c35c4b826b558265bbe5c987801d0eb165083bd06c40ecb7b36b3ddd93b5d91afd2d5a189357ec0a951b8246195b20158
DIST figma-bin-0.8.1-arm64.zip 144496746 BLAKE2B 667fcfa4424ecf155ccc6c8e793f01f73cf173533088c9d6be09ffa0018d48218e3bc42c19b6c5be2df08e62dbd7d1105db604de5bfb7744271d92e06b2901e0 SHA512 f038abfe45c927580e20e21f1d92f33a72595d6c7365f0064ede26291b42ff55849566c9d30f03e6217d687d6bcc9319700dcbbe38831496f0dc842cb096d075
DIST figma-linux_0.11.3_linux_amd64.deb 74099774 BLAKE2B d5bb3d2a8198f0c2fda380ee7f4d708ceff55289e4442504585f299a2eb43888f2a11d2e27153d1427827ffb003742919edb0f4bc83115049910b65ce1c3b153 SHA512 2ebf850e2b1c5ffcb73571158ea6a5e6724120497afe4d3cd758e2a99d2c5e4399cf0fef1c07b2952a7554b5fcbe5fd95c28904ea05baaf3b379bd630e50b5f9
DIST figma-linux_0.11.3_linux_arm64.deb 71294542 BLAKE2B 961bc65e170fd182480899abf26cc315ad3cf3254821d2a67377bfbd6abd3f81de62179cea21dd5cf4ab9ae4a408af8f4f063f09e00d521bfe7d2cb5c83e8f5b SHA512 b044577ceab83840a0b69aeb17c125053a92242e33eef094afdd05d9c73c3e88de970dbf6ae0ef2a67f64354dac32cd05f304e21f1d7578b9956b7c279806ced

View File

@ -0,0 +1,38 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
BINTRON_NAME="figma-linux"
CHROMIUM_LANGS="
af am ar bg bn ca cs da de el en-GB en-US es-419 es et fa fi fil fr gu he hi hr hu id it ja kn ko lt
lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr sv sw ta te th tr uk ur vi zh-CN zh-TW
"
inherit bintron-r1 unpacker
DESCRIPTION="Unofficial desktop client for Figma - collaborative interface design tool"
HOMEPAGE="https://github.com/Figma-Linux/figma-linux"
SRC_URI="
amd64? (
https://github.com/Figma-Linux/figma-linux/releases/download/v${PV}/figma-linux_${PV}_linux_amd64.deb
)
arm64? (
https://github.com/Figma-Linux/figma-linux/releases/download/v${PV}/figma-linux_${PV}_linux_arm64.deb
)
"
S="${WORKDIR}/opt/figma-linux/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64"
RESTRICT="bindist mirror test"
src_prepare() {
bintron-r1_src_prepare
# Remove all unnecessary bundled libs
rm -r lib usr || die
}