42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Template file for 'eza'
|
|
pkgname=eza
|
|
version=0.18.3
|
|
revision=1
|
|
build_style=cargo
|
|
hostmakedepends="pandoc pkg-config"
|
|
makedepends="libgit2-devel"
|
|
short_desc="Modern, maintained replacement for ls"
|
|
maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
|
|
license="MIT"
|
|
homepage="https://eza.rocks"
|
|
changelog="https://raw.githubusercontent.com/eza-community/eza/main/CHANGELOG.md"
|
|
distfiles="https://github.com/eza-community/eza/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=0fccd2751568715d708106a23b570201298c2347a360afc522d7029b432f5206
|
|
|
|
post_patch() {
|
|
cargo update --package git2@0.18.2 --precise 0.17.2
|
|
}
|
|
|
|
post_install() {
|
|
vcompletion completions/bash/eza bash
|
|
vcompletion completions/fish/eza.fish fish
|
|
vcompletion completions/zsh/_eza zsh
|
|
|
|
for manpage in eza.1 eza_colors.5 eza_colors-explanation.5; do
|
|
pandoc --standalone -f markdown -t man man/${manpage}.md > ${manpage}
|
|
vman ${manpage}
|
|
done
|
|
|
|
vlicense LICENCE
|
|
|
|
ln -s eza ${DESTDIR}/usr/bin/exa
|
|
}
|
|
|
|
exa_package() {
|
|
depends="eza>=${version}_${revision}"
|
|
short_desc+=" - transitional dummy package"
|
|
pkg_install() {
|
|
vmove usr/bin/exa
|
|
}
|
|
}
|