Added vesktop-bin ebuild

This commit is contained in:
Sheldon Lee 2024-04-12 20:44:20 +08:00
parent 6323ba43ac
commit 9f6ef916fc
3 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,14 @@
DEFINED_PHASES=install postinst postrm preinst unpack
DEPEND=x11-libs/gtk+:3 x11-libs/libnotify dev-libs/nss x11-libs/libXtst x11-misc/xdg-utils app-accessibility/at-spi2-core
DESCRIPTION=Vesktop is a custom Discord desktop app
EAPI=8
HOMEPAGE=https://github.com/Vencord/Vesktop
IDEPEND=dev-util/desktop-file-utils x11-misc/shared-mime-info
INHERIT=xdg
KEYWORDS=~amd64
LICENSE=GPL-3
RDEPEND=x11-libs/gtk+:3 x11-libs/libnotify dev-libs/nss x11-libs/libXtst x11-misc/xdg-utils app-accessibility/at-spi2-core
SLOT=0
SRC_URI=https://github.com/Vencord/Vesktop/releases/download/v1.5.1/vesktop_1.5.1_amd64.deb
_eclasses_=xdg-utils baea6080dd821f5562d715887954c9d3 xdg 4a14c5c24f121e7da66e5aab4a168c6e
_md5_=c66e8981a275e6183fcfa899cf3cb033

View File

@ -0,0 +1 @@
DIST vesktop_1.5.1_amd64.deb 76030374 BLAKE2B cbbf4f9f2e5871aaf47bc641106c83ec07d7ce7e9f1c86ab900604db8c4a039e43a614ed47e486956dfdf6d448a1d74d16d0e90ab809edf49a2a8a155b067439 SHA512 6de219ce512ca4206e1e4587b715de145aa89e01587d5b41cbf04430aaa33736283f442be41f57766617a1c0645afcad4ba8ba56dcb41e6b3c9e0c096b0a4964

View File

@ -0,0 +1,57 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# This ebuild it based off of the official Signal ebuild which also uses a deb
# package. The dependencies are loosely from one of the deb package's
# control.tar.gz extracted files.
EAPI=8
inherit xdg
DESCRIPTION="Vesktop is a custom Discord desktop app"
HOMEPAGE="https://github.com/Vencord/Vesktop"
SRC_URI="https://github.com/Vencord/Vesktop/releases/download/v${PV}/vesktop_${PV}_amd64.deb"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
x11-libs/gtk+:3
x11-libs/libnotify
dev-libs/nss
x11-libs/libXtst
x11-misc/xdg-utils
app-accessibility/at-spi2-core
"
RDEPEND="${DEPEND}"
src_unpack() {
default
unpack ./control.tar.gz
unpack ./data.tar.xz
mkdir "vesktop-bin-${PV}"
mv ./opt ./usr "vesktop-bin-${PV}"
}
src_install() {
insinto /
doins -r opt
insinto /usr/share
doins -r usr/share/applications
#dodoc -r usr/share/doc/vesktop/changelog.gz
doins -r usr/share/icons
fperms +x /opt/Vesktop/vesktop /opt/Vesktop/chrome-sandbox
dosym -r /opt/Vesktop/vesktop /usr/bin/vesktop-bin
}
pkg_postinst() {
xdg_pkg_postinst
}
pkg_postrm() {
xdg_pkg_postrm
}