45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
# Template file for 'eza'
|
|
pkgname=eza
|
|
version=0.18.18
|
|
revision=1
|
|
build_style=cargo
|
|
hostmakedepends="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
|
|
https://github.com/eza-community/eza/releases/download/v${version}/man-${version}.tar.gz"
|
|
checksum="437ea76838fea2464b9592f1adef7df0412e27c9fc2a3e7ff47efcdfb17457f5
|
|
4ed46167bc31712fc25e46287743eec2870644feeb09241cd14a68b7d6527093"
|
|
|
|
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 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
|
|
}
|
|
}
|