# cribbed from https://aur.archlinux.org/packages/grayjay-bin

EAPI=9
DESCRIPTION="Grayjay Desktop - follow creators, not platforms (privacy- and freedom-respecting client for YouTube, Rumble, Twitch, Spotify etc)"
HOMEPAGE="https://grayjay.app/desktop/"
SRC_URI="https://updater.grayjay.app/Apps/Grayjay.Desktop/${PV}/Grayjay.Desktop-linux-x64-v${PV}.zip -> ${P}.zip"
S="${WORKDIR}/Grayjay.Desktop-linux-x64-v${PV}"
LICENSE="source-first-license-1.1"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="gui-libs/gtk
	 app-arch/unzip
	 x11-libs/libnotify
	 dev-libs/nss
	 x11-libs/libXtst
	 x11-misc/xdg-utils
	 app-accessibility/at-spi2-core
	 app-crypt/libsecret"

src_install() 
{
  cd ${S}
  insinto /usr/share/grayjay
  doins -r .
  dobin ${FILESDIR}/grayjay
  insinto /usr/share/applications
  doins ${FILESDIR}/grayjay.desktop
  insinto /usr/share/icons/hicolor/512x512/apps
  doins grayjay.png
}