eza: update to 0.20.3
[void-pkg.git] / srcpkgs / eza / template
blob7ccf1ff0a5b7f7c50983827a973455c88490ae91
1 # Template file for 'eza'
2 pkgname=eza
3 version=0.20.3
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="51a61bba14d1e4043981cabc5cf3d14352bf6a4ca0e308f437d0c8d00f42c2f7
16  5e23fdd8e42757d90d77aac9c944f7cc30a3e6897a7c4c88875a6d89b2ba2a60"
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         }