This commit is contained in:
Daniel Azevedo 2024-10-01 14:46:08 +01:00
parent 7dc89021f0
commit e305540598
4 changed files with 89 additions and 0 deletions

36
lf/.footprint Normal file
View file

@ -0,0 +1,36 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/profile.d/
-rw-r--r-- root/root etc/profile.d/lf.csh
-rw-r--r-- root/root etc/profile.d/lfcd.csh
-rw-r--r-- root/root etc/profile.d/lfcd.sh
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/lf
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/applications/
-rw-r--r-- root/root usr/share/applications/lf.desktop
drwxr-xr-x root/root usr/share/bash-completion/
drwxr-xr-x root/root usr/share/bash-completion/completions/
-rw-r--r-- root/root usr/share/bash-completion/completions/lf
drwxr-xr-x root/root usr/share/doc/
-rw-r--r-- root/root usr/share/doc/lfrc.example
drwxr-xr-x root/root usr/share/fish/
drwxr-xr-x root/root usr/share/fish/vendor_completions.d/
-rw-r--r-- root/root usr/share/fish/vendor_completions.d/lf.fish
drwxr-xr-x root/root usr/share/fish/vendor_functions.d/
-rw-r--r-- root/root usr/share/fish/vendor_functions.d/lfcd.fish
drwxr-xr-x root/root usr/share/licenses/
drwxr-xr-x root/root usr/share/licenses/lf/
-rw-r--r-- root/root usr/share/licenses/lf/LICENSE
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man1/
-rw-r--r-- root/root usr/share/man/man1/lf.1.gz
drwxr-xr-x root/root usr/share/vim/
drwxr-xr-x root/root usr/share/vim/vimfiles/
drwxr-xr-x root/root usr/share/vim/vimfiles/ftdetect/
-rw-r--r-- root/root usr/share/vim/vimfiles/ftdetect/lf.vim
drwxr-xr-x root/root usr/share/vim/vimfiles/syntax/
-rw-r--r-- root/root usr/share/vim/vimfiles/syntax/lf.vim
drwxr-xr-x root/root usr/share/zsh/
drwxr-xr-x root/root usr/share/zsh/site-functions/
-rw-r--r-- root/root usr/share/zsh/site-functions/_lf

1
lf/.md5sum Normal file
View file

@ -0,0 +1 @@
69d325efa0974ad1608a87784e51dd35 r32.tar.gz

5
lf/.signature Normal file
View file

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/d77crux.pub
RWT0dvMs3lAWkIwtuwtkhwRKkSVnnd0v44g6Ofl55C+CHZh3wEkGrUKwXp7QKzvymrRGNJyyHluEC9FHGl46sdqqw3yvd0GjDgE=
SHA256 (Pkgfile) = f4ee36a1b3e74f0a4f7568c198ca04e05bceb9818623c2dc682ef5558644774a
SHA256 (.footprint) = 1acaf1a5910b038e42b13f86d0419dd15f85f4089d2161a8887b02973636eb24
SHA256 (r32.tar.gz) = 01531e7a78d8bfbe14739072e93446d003f0e4ce12032a26671fa326b73bc911

47
lf/Pkgfile Normal file
View file

@ -0,0 +1,47 @@
# Description: lf (as in "list files") is a terminal file manager written in Go with a heavy inspiration from ranger file manager.
# URL: https://github.com/gokcehan/lf
# Maintainer: Daniel Azevedo, daniazevedo77 at posteo dot net
# Depends on: git go
name=lf
version=r32
release=2
source=(https://github.com/gokcehan/lf/archive/refs/tags/r32.tar.gz)
build() {
cd $name-$version
mkdir build
export GOPATH="$SRC"
go mod download
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export GOPATH="$SRC"
go build -v \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-compressdwarf=false \
-linkmode external \
-extldflags '${LDFLAGS}' \
-X main.gVersion=$version" \
-o build \
.
install -vDm755 -t $PKG/usr/bin build/lf
install -vDm644 -t $PKG/usr/share/man/man1 lf.1
install -vDm644 -t $PKG/usr/share/doc/$pkgname README.md etc/lfrc.example
install -vDm644 -t $PKG/usr/share/applications lf.desktop
install -vDm644 -t $PKG/usr/share/vim/vimfiles/syntax etc/lf.vim
install -vDm644 -t $PKG/usr/share/vim/vimfiles/ftdetect etc/lf.vim
install -vDm644 -t $PKG/etc/profile.d etc/*.{sh,csh}
install -vDm644 -t $PKG/usr/share/fish/vendor_functions.d etc/lfcd.fish
install -vDm644 etc/lf.bash $PKG/usr/share/bash-completion/completions/lf
install -vDm644 etc/lf.fish $PKG/usr/share/fish/vendor_completions.d/lf.fish
install -vDm644 etc/lf.zsh $PKG/usr/share/zsh/site-functions/_lf
install -vDm644 -t $PKG/usr/share/licenses/$name LICENSE
rm -rf $PKG/usr/share/doc/README.md
}