app-misc/zcode-switch-bin: new package, add 1.7.1

Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
This commit is contained in:
Yongxiang Liang authored and Zakk committed 2026-11-15 05:02:43 +11:00
1 parent 46273bca0e
commit 923d9ee43c
4 files changed
+73

No files matched your search

+7
View File
@@ -704,6 +704,13 @@ github_account = "Nuralii1i"
# vendor download, no published version index
#["app-misc/z-library"]
["app-misc/zcode-switch-bin"]
source = "github"
github = "pjpv/zcode-switch"
use_latest_release = true
prefix = "v"
github_account = "liangyongxiang"
["app-office/anytype-bin"]
source = "github"
github = "anyproto/anytype-ts"
+1
View File
@@ -0,0 +1 @@
DIST zcode-switch_1.7.1_amd64.deb 6205810 BLAKE2B edfb39d8bb9c1bd9762fea00082c9eeb31248ad57e55fe4ea3cae270e47627570424f54bbba817eaed63e24011567b73ce9a4e32cb12653e6620d5bba62e2323 SHA512 e91ccbb432c1622995d6d1f334f368572aa9895c963329c3798d9f6c04fce1b5d7ca63aa76e582107515e531659b62876f0d0b507727afae31a499ca922a83ea
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>tanekliang@gmail.com</email>
<name>Yongxiang Liang</name>
</maintainer>
<upstream>
<remote-id type="github">pjpv/zcode-switch</remote-id>
</upstream>
</pkgmetadata>
@@ -0,0 +1,54 @@
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop unpacker xdg
MY_PN="${PN%-bin}"
DESCRIPTION="One-click switcher for multiple ZCode accounts with quota display"
HOMEPAGE="https://github.com/pjpv/zcode-switch"
SRC_URI="
amd64? ( https://github.com/pjpv/zcode-switch/releases/download/v${PV}/${MY_PN}_${PV}_amd64.deb )
"
S="${WORKDIR}"
LICENSE="
Apache-2.0 BSD ISC MIT MPL-2.0 Unicode-3.0 openssl
"
SLOT="0"
KEYWORDS="-* ~amd64"
RESTRICT="strip"
RDEPEND="
dev-libs/glib:2
dev-libs/libayatana-appindicator
net-libs/libsoup:3.0
net-libs/webkit-gtk:4.1
sys-apps/dbus
x11-libs/cairo
x11-libs/gdk-pixbuf:2
x11-libs/gtk+:3
x11-libs/libX11
x11-misc/xdg-utils
"
QA_PREBUILT="usr/bin/${MY_PN}"
src_install() {
dobin usr/bin/${MY_PN}
local size
for size in 32 128 512; do
doicon -s ${size} usr/share/icons/hicolor/${size}x${size}/apps/${MY_PN}.png
done
doicon -s 256 usr/share/icons/hicolor/256x256@2/apps/${MY_PN}.png
make_desktop_entry --eapi9 "${MY_PN}" -n "Z·SWITCH" -i "${MY_PN}" \
-c "Utility;" -e "StartupWMClass=${MY_PN}" -e "Terminal=false"
}
pkg_postinst() {
xdg_pkg_postinst
elog "Use Portage to update zcode-switch; do not use its built-in updater."
}