diff options
author | Efe İzbudak <efe.izbudak@metu.edu.tr> | 2022-12-24 16:03:06 -0500 |
---|---|---|
committer | Efe İzbudak <efe.izbudak@metu.edu.tr> | 2022-12-25 00:04:50 +0300 |
commit | c9cf86438bc72ebcb21ad616133fe4291542f354 (patch) | |
tree | 05e167687dd2494c9294c27cee0ddc207b296c29 | |
parent | media-sound/amberol: new package, add 0.9.2 (diff) | |
download | guru-c9cf86438bc72ebcb21ad616133fe4291542f354.tar.gz guru-c9cf86438bc72ebcb21ad616133fe4291542f354.tar.bz2 guru-c9cf86438bc72ebcb21ad616133fe4291542f354.zip |
app-misc/lf: add 28
Signed-off-by: Efe İzbudak <efe.izbudak@metu.edu.tr>
-rw-r--r-- | app-misc/lf/Manifest | 2 | ||||
-rw-r--r-- | app-misc/lf/lf-28.ebuild | 58 | ||||
-rw-r--r-- | app-misc/lf/metadata.xml | 3 |
3 files changed, 63 insertions, 0 deletions
diff --git a/app-misc/lf/Manifest b/app-misc/lf/Manifest index 2e6f994db..d83a5cb7e 100644 --- a/app-misc/lf/Manifest +++ b/app-misc/lf/Manifest @@ -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 diff --git a/app-misc/lf/lf-28.ebuild b/app-misc/lf/lf-28.ebuild new file mode 100644 index 000000000..d027ff90e --- /dev/null +++ b/app-misc/lf/lf-28.ebuild @@ -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" +} diff --git a/app-misc/lf/metadata.xml b/app-misc/lf/metadata.xml index 6266ea874..ea90d84eb 100644 --- a/app-misc/lf/metadata.xml +++ b/app-misc/lf/metadata.xml @@ -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> |