# Maintainer: kpcyrd # Maintainer: Caleb Maclennan # Maintainer: Orhun Parmaksız # ALARM: Kevin Mihelich # - remove makedepend on pandoc, don't build/install manpages pkgname=eza pkgver=0.18.9 pkgrel=2 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") sha256sums=('917736591429813ef4cfce47bb2d3d87e9f1e142b2a6ebf74a345c3a15894918') b2sums=('a398256ebb7b62a7c3e6a3b8e1646c48553eed806db5bf89944ee82937aea1a9b265932d2af9253dddf4c65b064ac5f9ed4ab3997d7943f4336f0da4671fe444') 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: