View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Source overlay: https://github.com/BlueManCZ/edgets
EAPI=8
inherit desktop xdg
DESCRIPTION="A free, open-source and cross-platform password manager."
HOMEPAGE="https://github.com/buttercup/buttercup-desktop"
SRC_URI="${HOMEPAGE}/releases/download/v${PV}/Buttercup-linux-x86_64.AppImage -> ${P}.AppImage
${HOMEPAGE}/blob/master/resources/images/buttercup-256.png?raw=true -> ${PN}.png"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="-* ~amd64"
IUSE=""
RESTRICT="bindist mirror strip"
RDEPEND="sys-fs/fuse"
QA_PREBUILT="*"
S="${DISTDIR}"
src_install() {
exeinto "/opt/${PN}"
doexe "${P}.AppImage"
dosym "/opt/${PN}/${P}.AppImage" "/usr/bin/${PN}" || die "dosym failed"
doicon -s 256 "${PN}.png" || die "doicon failed"
domenu "${FILESDIR}/${PN}.desktop"
}