app-misc/lf: add 33

Signed-off-by: Efe İzbudak <efe.izbudak@metu.edu.tr>
This commit is contained in:
Efe İzbudak
2024-11-09 05:58:23 -05:00
parent 93a88e5acd
commit 97bc4fd063
2 changed files with 56 additions and 0 deletions

View File

@@ -10,3 +10,5 @@ DIST lf-31-deps.tar.xz 17010484 BLAKE2B 3e92a87c1ce48565512456db504cddbb195499c7
DIST lf-31.tar.gz 138687 BLAKE2B 757d785e24c7f1ad664f81210ab33f8aedca62c5acfe3d8bad140a13c2321155d8c8b9f90da948666315ac1bd2755d92c1b6f01276e078d4b23949da1faade45 SHA512 8029c5310d94be853d82b9fe6359853db37340231bd291dddc675d053d020a7a98f17931734bb65022278ccf3ab94513a6fdc0e37986388572fc4afff28e0380
DIST lf-32-vendor.tar.xz 1158528 BLAKE2B 40913397dd3dbebcc8782c5a4d3620725e31deeb85127f8a59ed08dd6e882bf340aef45742b6033833d2c3b0ae47965daac9e4b5d5d1fc25d29d09db53da7cb7 SHA512 f536a7ddb0e0137cbccbff05673629a2bddfe4fcee163358cad5387f8a8c8c79110d17cc36bf5beb57fab5594b9652449d8d03b6332d82812c7254562c1ec4d9
DIST lf-32.tar.gz 141885 BLAKE2B 34aeff4c08dfe07e2c8b24c233899061e037752a05ae6c00e9beabf0497b0a361612a9ad68f6c1b873f2add3d56a65a369bd41e1db848ce32be48b68f3c8d9f2 SHA512 ee042b897403f21bb94b87ab835400e865b9d057d2c951e1adacbd2f3e27761304afc2431ae881de61da7265f30a14c69257b7e29c95ac365515790f47f9528a
DIST lf-33-vendor.tar.xz 1204232 BLAKE2B 61fc1e5c8dcbd8bcd8ae9c7d6ba850c22705abb75d022d3da63403bb9399b79d66f1b5385ea0247b8612be3edd2bd510ab854bbd545a3ad1613a4a6244aa9583 SHA512 598e4b251a55b49abc10593cb376657a03306d16c3308af8cb91bfc184c757ed975d55eb498a94ea249f2722284b426d557e9c105066f4b67344a7fdb259d7a9
DIST lf-33.tar.gz 146044 BLAKE2B e6a201499d9a61a8416505bb4f091ecb71b245b3d085391174ef4bb128edff88a25eff322cf0b67c24fcaa37f5dd5f180e78bbde09b6019886eb4961e9c1c2ce SHA512 7cf0a0e9305c211f30e4e942a16b0e09b66bf25181765931c5d453fffbb0c8570f3491b13551d4abf9fed3376d60180fe94f4b8c9c4b2ff861d610be36ebeb37

54
app-misc/lf/lf-33.ebuild Normal file
View File

@@ -0,0 +1,54 @@
# Copyright 1999-2021 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="-s -w -X main.gVersion=r${PV}"
use static && {
export CGO_ENABLED=0
ldflags+=' -extldflags "-static"'
}
go build -ldflags="${ldflags}" || die 'go build failed'
}
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}"
# zsh-completion
newzshcomp "etc/${PN}.zsh" "_${PN}"
# fish-completion
dofishcomp "etc/${PN}.fish"
dofishcomp "etc/${PN}cd.fish"
domenu "${PN}.desktop"
}