2025-03-13 13:44:26 +00:00

45 lines
1.2 KiB
Bash

# Template file for 'eza'
pkgname=eza
version=0.20.24
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="e5a1761f05adc74b80d59036819e768060971c6f5107e208024c752a2af02ccc
eee8dab57d433bceb08fadc3aad283a7c3dc36cdaf3a69fb12fc83902804042e"
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
}
}