Files
horizon-packages/srcpkgs/eza/template
T
2026-07-09 13:13:09 +02:00

46 lines
1.2 KiB
Bash

# Template file for 'eza'
pkgname=eza
version=0.23.5
revision=1
build_style=cargo
hostmakedepends="pkg-config"
makedepends="libgit2-1.9-devel"
short_desc="Modern replacement for ls"
maintainer="tranzystorekk <tranzystorek.io@protonmail.com>"
license="EUPL-1.2"
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
https://github.com/eza-community/eza/releases/download/v${version}/man-${version}.tar.gz"
checksum="bbf179f2611c904014431740b559e8055276c12fcf978a7e31c271663548337f
cbdae2ad79ae0ef1fd6a06f4644c90cef79a56353bc3bb7cf4663bb2831420f9"
replaces="exa>=0"
skip_extraction="man-${version}.tar.gz"
post_extract() {
vsrcextract -C manpages --strip-components=3 man-${version}.tar.gz
}
post_install() {
vcompletion completions/bash/eza bash
vcompletion completions/fish/eza.fish fish
vcompletion completions/zsh/_eza zsh
for _manpage in manpages/*; do
vman ${_manpage}
done
vlicense LICENSE.txt
ln -s eza ${DESTDIR}/usr/bin/exa
}
exa_package() {
depends="eza>=${version}_${revision}"
short_desc+=" (transitional dummy package)"
pkg_install() {
vmove usr/bin/exa
}
}