-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
44 lines (37 loc) · 1.18 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Template file for 'eza'
pkgname=eza
version=0.18.17
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="fb9eea00bff8ad0283c046398259f03b1ce2830a49cdd7417b65c9dade07d709
273b5809173cf0d446a66725a7f489a0cd69d37284e545c4ed0c25de7323af79"
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
}
}