app-misc/lf: add 32

Signed-off-by: Efe İzbudak <efe.izbudak@metu.edu.tr>
This commit is contained in:
Efe İzbudak
2024-06-20 22:25:22 -04:00
parent 813d39805b
commit d322806ea3
2 changed files with 55 additions and 0 deletions

View File

@@ -8,3 +8,5 @@ DIST lf-30-deps.tar.xz 1141300 BLAKE2B fe668d052e6ace68d4c6a0cfdb838a16bee62215a
DIST lf-30.tar.gz 125152 BLAKE2B 082ddfc2438dd7133a72ed951c093bbf9514cea2b9aa58ed8263d7d759d6112dc14ca811287543bc61f0b79570ed15f69fd561bda34652ec53c8735baa95082d SHA512 2318b8b1ebb92cec5247b3f8819492182085776bc437b223a92377f731f26a85a7b9bf3c475b31ee28ba204cc2e9abf8330e7a64b7d57631da9cb285aa80326d
DIST lf-31-deps.tar.xz 17010484 BLAKE2B 3e92a87c1ce48565512456db504cddbb195499c7e02565d35b8d1bb462c19b5e442032ec8bb90191a6f039e9075148e5afb8e4d726a4b800f2c8ca2851a4f6c5 SHA512 7cbc7806b89e9fd5d225622ecb974f48971ff7a07b7099d401489b0f0a43604ecaf0454e1a7f4c37130271c943c2966f18187bbe56bcb3afe00bea5096f281df
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

53
app-misc/lf/lf-32.ebuild Normal file
View File

@@ -0,0 +1,53 @@
# 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"
}