mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
app-misc/lf: add 31
Signed-off-by: Efe İzbudak <efe.izbudak@metu.edu.tr>
This commit is contained in:
@@ -6,3 +6,5 @@ DIST lf-29-deps.tar.xz 16965264 BLAKE2B 0e57ea4b64d467c307e5a1ec8744d20bd463149b
|
||||
DIST lf-29.tar.gz 123717 BLAKE2B 8fd81c5333c2b4732a3fe72f8f6d92ebf41713128806bd6f4b781ba65430dd8cbee84c12ad1502ef824fb7887ce052b628c8acfe36bcd67d3c37ff0245315d2d SHA512 7e55fa284a491aef1e3a78ac33de74df2c350a750fa87411540a46a2bd663cdec8c46326586e63e3dd2db4a27f6d6042100c57c18a554ebbcebff1356cc9bf32
|
||||
DIST lf-30-deps.tar.xz 1141300 BLAKE2B fe668d052e6ace68d4c6a0cfdb838a16bee62215a31e297b48b80ad3ae9e154055be60df5b0d5789d4a278ed343d8cf35ce6516abe2e33320272036fddbb5110 SHA512 be6622fe040497e71cf505f6e336bd12b31eb85dde929e30d831da7268a34f30baf48730cd40acfb4d88e68f9a12f1fd9949cd58219ba822d626f79100b3ea60
|
||||
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
|
||||
|
||||
58
app-misc/lf/lf-31.ebuild
Normal file
58
app-misc/lf/lf-31.ebuild
Normal file
@@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit go-module bash-completion-r1 desktop xdg
|
||||
|
||||
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}-deps.tar.xz"
|
||||
|
||||
DESCRIPTION="Terminal file manager"
|
||||
HOMEPAGE="https://github.com/gokcehan/lf"
|
||||
IUSE="+static"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
S="${WORKDIR}/${PN}-r${PV}"
|
||||
|
||||
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
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins "etc/${PN}.zsh" "_${PN}"
|
||||
|
||||
# fish-completion
|
||||
insinto /usr/share/fish/vendor_completions.d
|
||||
doins "etc/${PN}.fish"
|
||||
insinto /usr/share/fish/vendor_functions.d
|
||||
doins "etc/${PN}cd.fish"
|
||||
|
||||
domenu "${PN}.desktop"
|
||||
}
|
||||
Reference in New Issue
Block a user