mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
app-misc/lf: add 36
Signed-off-by: Efe İzbudak <efe.izbudak@metu.edu.tr>
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
DIST lf-33-vendor.tar.xz 1204232 BLAKE2B 61fc1e5c8dcbd8bcd8ae9c7d6ba850c22705abb75d022d3da63403bb9399b79d66f1b5385ea0247b8612be3edd2bd510ab854bbd545a3ad1613a4a6244aa9583 SHA512 598e4b251a55b49abc10593cb376657a03306d16c3308af8cb91bfc184c757ed975d55eb498a94ea249f2722284b426d557e9c105066f4b67344a7fdb259d7a9
|
||||
DIST lf-33.tar.gz 146044 BLAKE2B e6a201499d9a61a8416505bb4f091ecb71b245b3d085391174ef4bb128edff88a25eff322cf0b67c24fcaa37f5dd5f180e78bbde09b6019886eb4961e9c1c2ce SHA512 7cf0a0e9305c211f30e4e942a16b0e09b66bf25181765931c5d453fffbb0c8570f3491b13551d4abf9fed3376d60180fe94f4b8c9c4b2ff861d610be36ebeb37
|
||||
DIST lf-36-vendor.tar.xz 1994660 BLAKE2B 90b99edcd0c49acd1d28c7952b4222ecf0859c4f7a8146be89c9a8fca0b436959495c1439c805017683c4faa940f996136285421dfa78832afaa852f6df90517 SHA512 29059f181824098be20a8b60e8df272ae783313e38a82d8bb41d869446a30260085dc1471bcdc53b8af683c3f1cad0dac532344f929f504ab0ddfd3c3400d659
|
||||
DIST lf-36.tar.gz 175288 BLAKE2B 266c26f64561c2baa531b4efc8ca6945b1e1d3d508c7cafbc011f09df70956a27cd1aaede2b55c5440b952a09e2aa5ab7557c9aee5b4924d0177d1540ab06fa3 SHA512 a5af2ffb2c4489142b47701058d7a962dc7657afbf29fa726b6b956d445ddd6fd4f408e5192647ebf9ed63375cba75befb89381f0cc411273c0974d38585fb6f
|
||||
|
||||
55
app-misc/lf/lf-36.ebuild
Normal file
55
app-misc/lf/lf-36.ebuild
Normal file
@@ -0,0 +1,55 @@
|
||||
# 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"
|
||||
SRC_URI="https://github.com/gokcehan/lf/archive/r${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://github.com/ephemer4l/gentoo-lf/raw/main/${P}-vendor.tar.xz"
|
||||
S="${WORKDIR}/${PN}-r${PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
|
||||
IUSE="+static"
|
||||
|
||||
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