eza: update to 0.20.6
[void-pkg.git] / srcpkgs / eza / template
blob12d942bdfbd5f10ccaa738a90edc9cc2fd6c9f66
1 # Template file for 'eza'
2 pkgname=eza
3 version=0.20.6
4 revision=1
5 build_style=cargo
6 hostmakedepends="pkg-config"
7 makedepends="libgit2-1.8-devel"
8 short_desc="Modern, maintained replacement for ls"
9 maintainer="tranzystorekk <tranzystorek.io@protonmail.com>"
10 license="EUPL-1.2"
11 homepage="https://eza.rocks"
12 changelog="https://raw.githubusercontent.com/eza-community/eza/main/CHANGELOG.md"
13 distfiles="https://github.com/eza-community/eza/archive/refs/tags/v${version}.tar.gz
14  https://github.com/eza-community/eza/releases/download/v${version}/man-${version}.tar.gz"
15 checksum="bf7c30789be7866a36fda9d2b1bb351f41675f4c8bb8c89e7ff85619cc894bfa
16  da934afe5b95c80097667057d9c1b901e3a2748db0a966b1f230c0e5bc93bf35"
18 skip_extraction="man-${version}.tar.gz"
20 post_extract() {
21         vsrcextract -C manpages --strip-components=3 man-${version}.tar.gz
24 post_install() {
25         vcompletion completions/bash/eza bash
26         vcompletion completions/fish/eza.fish fish
27         vcompletion completions/zsh/_eza zsh
29         for manpage in manpages/*; do
30                 vman ${manpage}
31         done
33         vlicense LICENSE.txt
35         ln -s eza ${DESTDIR}/usr/bin/exa
38 exa_package() {
39         depends="eza>=${version}_${revision}"
40         short_desc+=" - transitional dummy package"
41         pkg_install() {
42                 vmove usr/bin/exa
43         }