mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 14:03:33 -04:00
app-misc/lf: add 28
Signed-off-by: Efe İzbudak <efe.izbudak@metu.edu.tr>
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
DIST lf-27-deps.tar.xz 12602056 BLAKE2B fec475a83988080468c8daabd4076a16f58eec610d71ad46ad7e5adf146c70d2e2ec78ede22c62b3353e668fd24f102c82a4b27f768153b4d003854734f92428 SHA512 74e3cbc98746669bc7f57bcf0b9a2d196795f0c8b011b33f1cf8afed7b7f3ef971c002df3f83985ca68b7980b4beec71569357123dbc31219542a04ff63295cd
|
||||
DIST lf-27.tar.gz 112266 BLAKE2B e03cd38042661d35dd7d110894fe7ca4866e491c810e76d6cfe1d34efedbda5f2b4b6e626ab72c72450252dca8f82c3e1804a686e7437d6f7475f3b9fa0ca796 SHA512 1a9cd0a3206f01f75a9ea0dbef4fcd3a2e28e9d283b19c74e821c5e90229b9ff64524e9d151dec44d9b2c06b3f8b424c4053034b58bcc7fa38345ce7c662f013
|
||||
DIST lf-28-deps.tar.xz 28197760 BLAKE2B 8b89b05b5fec0fcb2e57fb1b6df4e8f5ec5e056dbd2dd126978fc5786b9c38e154817092262aed28e77c3c3b9d1f63539e50ee46a63615ed1bf7a1d46cb828ed SHA512 9a0302ba1278ad292beae0168baa1b70c767fd366ec483abc18a1e561cf4b850c18cf2b1a7fe7a5e3d2c10fbf37d1e89e2bf13a0083870748e00f3fd0336a7b4
|
||||
DIST lf-28.tar.gz 117374 BLAKE2B 9f4ef1f51177ce23527aa21021079b45ba729cba58c7aaa9915e9306c2f343d9533e7630a54fd0670b8c869aff042059d672bc4bdc3496637892618b4b90ac36 SHA512 ae52248b5934e3c136c54e0df184a6a1d3219f6e6ddebdf7263dc7516f7f1344331d7c5640cb83b7d483f291524a56271b2209454981742bf702b177acfffbc0
|
||||
|
||||
58
app-misc/lf/lf-28.ebuild
Normal file
58
app-misc/lf/lf-28.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"
|
||||
}
|
||||
@@ -9,4 +9,7 @@
|
||||
<email>efe.izbudak@metu.edu.tr</email>
|
||||
<name>Efe İzbudak</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">gokcehan/lf</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
||||
Reference in New Issue
Block a user