Files
gentoo-zh/dev-vcs/sourcegit-bin/sourcegit-bin-2026.24.ebuild
T
2026-11-09 18:20:58 +11:00

41 lines
963 B
Bash

# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop unpacker xdg
DESCRIPTION="Opensource Git GUI client"
HOMEPAGE="https://github.com/sourcegit-scm/sourcegit"
SRC_URI="
amd64? ( https://github.com/sourcegit-scm/sourcegit/releases/download/v${PV}/sourcegit_${PV}-1_amd64.deb )
arm64? ( https://github.com/sourcegit-scm/sourcegit/releases/download/v${PV}/sourcegit_${PV}-1_arm64.deb )
"
S="${WORKDIR}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
RESTRICT="strip"
QA_PREBUILT="
/opt/sourcegit/libHarfBuzzSharp.so
/opt/sourcegit/libSkiaSharp.so
/opt/sourcegit/libonigwrap.so
/opt/sourcegit/sourcegit
"
DEPEND="
dev-vcs/git
media-libs/fontconfig
"
RDEPEND="${DEPEND}"
src_install(){
insinto /opt/sourcegit
doins -r "${S}"/opt/sourcegit/*
fperms 755 /opt/sourcegit/sourcegit
domenu "${FILESDIR}"/sourcegit.desktop
doicon -s 256 "${S}"/usr/share/icons/sourcegit.png
}