mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
app-misc/lf: add 41
Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org>
This commit is contained in:
@@ -6,3 +6,5 @@ DIST lf-37-vendor.tar.xz 1997432 BLAKE2B 9f0294400ae3c787812195762fef11da8ee6621
|
||||
DIST lf-37.tar.gz 180281 BLAKE2B 3a714dbd5fa391f57d8e802ac023b77230203ea8cc7922b4f747adcd921ea8aa0289cb5f0625c3a3b6334b08abd220797dabd5239d10979120cfb7d4f9bab99c SHA512 a965f59e7684950005ad4af5ae1d8851cf55d487fa129483816ff050fedfd07306fd32c46876271d45d190a12c6b2c793dcce14963754a6bbff7f93c0011a4c7
|
||||
DIST lf-38-deps.tar.xz 17984560 BLAKE2B 3600702f2c1fb9cbd1f2d97efd65c87a2429ff2bd1aaae0d20036e44ddec3aab1898df477c5415e1898551532481b94ac8c34fd092c2959f6e3e58b70040f79d SHA512 669f486b20b5a79e7b623178e743451bb255be0fdb02590a276b702c5347ecd740a1fc614e401cacea1f5daa40939fbee5a5d5c81fcdf660b9fa21d5daae164c
|
||||
DIST lf-38.tar.gz 179583 BLAKE2B e960d7e2196bed001fd6f5b4436c2ebf9f364b00d7d950bb1677e579371e2ed0f69fe283d6193d840bfb5754e5723e97aa893dcac8484d89d88cb28b79c8849d SHA512 b9949b64fb658524a8cc71a4442fe89099ec3772aecb35154f2312ed078ad73c1f3a6da1cce6d99806700f46142450618b0fe8842039ae36d78642481de6b078
|
||||
DIST lf-41-deps.tar.xz 17738296 BLAKE2B cadeb42181fafe603d13595f3b1a4ea892d3258e0ac5610938db24323a2f8aedf9b446da6acb7e8604808ecccd2b7dbfceb513bfaf908b869af9962276c58028 SHA512 10b97824e258ccaf79babb87b06ebb259e527d148b2381cacd713620419d0164c0ccd0030a81ddef661a6f7112d05987e1ebb0fd83754b2b65aca1a5d2a1f2a9
|
||||
DIST lf-41.tar.gz 197515 BLAKE2B 93afe54572d82f537f03a7bbe8b7da6f1845b58a805d5259a8cb1918a3939af3f88cb408b01d703b1c314db8ae64456c88d0543b5d69feb44a720adc50f40661 SHA512 4a04991165daf408d883fc38bb7ac4f8405bb9f62b0c983c19a95708e9384fd82f621a0be2792bf2e819047e1f6a542624cf47d650a765f872a0b5b7cc80c8c4
|
||||
|
||||
75
app-misc/lf/lf-41.ebuild
Normal file
75
app-misc/lf/lf-41.ebuild
Normal file
@@ -0,0 +1,75 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module shell-completion desktop xdg
|
||||
|
||||
DESCRIPTION="Terminal file manager"
|
||||
HOMEPAGE="https://github.com/gokcehan/lf"
|
||||
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/gokcehan/lf.git"
|
||||
else
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
SRC_URI="
|
||||
https://github.com/gokcehan/${PN}/archive/refs/tags/r${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/ingenarel/guru-depfiles/releases/download/${P}-deps.tar.xz/${P}-go-mod-deps.tar.xz ->
|
||||
${P}-deps.tar.xz
|
||||
"
|
||||
S="${WORKDIR}/${PN}-r${PV}"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
#gentoo-go-license lf-9999.ebuild
|
||||
LICENSE+=" Apache-2.0 BSD MIT "
|
||||
# dependency licenses
|
||||
SLOT="0"
|
||||
IUSE="+static"
|
||||
|
||||
src_unpack() {
|
||||
if [[ "${PV}" == 9999 ]];then
|
||||
git-r3_src_unpack
|
||||
go-module_live_vendor
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local ldflags="-w -X main.gVersion=r${PV}"
|
||||
use static && {
|
||||
export CGO_ENABLED=0
|
||||
ldflags+=' -extldflags "-static"'
|
||||
}
|
||||
|
||||
ego build -ldflags="${ldflags}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=( README.md etc/lfrc.example )
|
||||
|
||||
dobin "${PN}"
|
||||
|
||||
einstalldocs
|
||||
|
||||
doman "${PN}.1"
|
||||
|
||||
# bash & zsh cd script
|
||||
insinto "/usr/share/${PN}"
|
||||
doins "etc/${PN}cd.sh"
|
||||
|
||||
# bash-completion
|
||||
newbashcomp "etc/${PN}.bash" "${PN}"
|
||||
bashcomp_alias lf lfcd
|
||||
|
||||
# zsh-completion
|
||||
newzshcomp "etc/${PN}.zsh" "_${PN}"
|
||||
|
||||
# fish-completion
|
||||
dofishcomp "etc/${PN}.fish"
|
||||
dofishcomp "etc/${PN}cd.fish"
|
||||
|
||||
domenu "${PN}.desktop"
|
||||
}
|
||||
Reference in New Issue
Block a user