2023-11-02 18:55:21 +00:00
|
|
|
|
# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
|
|
|
|
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
|
|
|
|
|
# Maintainer: Orhun Parmaksız <orhun@archlinux.org>
|
|
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
|
# - remove makedepend on pandoc, don't build/install manpages
|
|
|
|
|
|
|
|
|
|
pkgname=eza
|
2024-04-19 12:53:27 +00:00
|
|
|
|
pkgver=0.18.11
|
2024-04-11 12:49:13 +00:00
|
|
|
|
pkgrel=1
|
2023-11-02 18:55:21 +00:00
|
|
|
|
pkgdesc="A modern replacement for ls (community fork of exa)"
|
|
|
|
|
url="https://github.com/eza-community/eza"
|
|
|
|
|
arch=("x86_64")
|
|
|
|
|
license=("MIT")
|
|
|
|
|
provides=('exa')
|
|
|
|
|
replaces=('exa')
|
|
|
|
|
conflicts=('exa')
|
|
|
|
|
depends=('libgit2.so')
|
|
|
|
|
makedepends=("cargo")
|
|
|
|
|
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/eza-community/eza/archive/v${pkgver}.tar.gz")
|
2024-04-19 12:53:27 +00:00
|
|
|
|
sha256sums=('92d810c36ac67038e2ed3c421087de8793eb0b9de332c9239096df9d52eb30e3')
|
|
|
|
|
b2sums=('7e49ed0cf4d701138549494f63fd09cda5eea2827dc86b849048e9aecbd374edf022c2120eac13f19bac5cfd890033e3ebfe456e3e11bf9ba23eed3a61ee0669')
|
2023-11-02 18:55:21 +00:00
|
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
|
cargo fetch --locked
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
|
cargo build --frozen --release
|
|
|
|
|
mkdir -p target/man
|
|
|
|
|
#for manpage in eza.1 eza_colors.5 eza_colors-explanation.5; do
|
|
|
|
|
# pandoc --standalone -f markdown -t man "man/${manpage}.md" > "target/man/${manpage}"
|
|
|
|
|
#done
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
check() {
|
|
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
|
cargo test --frozen
|
|
|
|
|
target/release/eza -la
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package() {
|
|
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
|
install -Dm755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
|
|
|
|
|
ln -s eza "${pkgdir}/usr/bin/exa"
|
|
|
|
|
|
|
|
|
|
# install completions
|
|
|
|
|
install -Dm644 "completions/bash/${pkgname}" -t "${pkgdir}/usr/share/bash-completion/completions"
|
|
|
|
|
install -Dm644 "completions/zsh/_${pkgname}" -t "${pkgdir}/usr/share/zsh/site-functions/"
|
|
|
|
|
install -Dm644 "completions/fish/${pkgname}.fish" -t "${pkgdir}/usr/share/fish/vendor_completions.d"
|
|
|
|
|
|
|
|
|
|
# install man pages
|
|
|
|
|
#install -Dm644 target/man/*.1 -t "${pkgdir}/usr/share/man/man1"
|
|
|
|
|
#install -Dm644 target/man/*.5 -t "${pkgdir}/usr/share/man/man5"
|
|
|
|
|
|
|
|
|
|
install -Dm644 LICEN?E "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et:
|