# 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.20.9 pkgrel=1 pkgdesc="A modern replacement for ls (community fork of exa)" url="https://github.com/eza-community/eza" arch=(x86_64) license=(EUPL-1.2) provides=(exa) replaces=(exa) conflicts=(exa) depends=(gcc-libs # libgcc_s.so glibc # libc.so libm.so libgit2) makedepends=(cargo) source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz") sha256sums=('3f55cab4625bbd0af01bd4049330217b392fe915b0e5764f4131c9118d4f92d7') b2sums=('63bbfa86f1e840e02014f16bd35ba9a7a6b0de673073a2156fb80648b593a4ead879cfec3dcd875c6de65f390ffd72b011e723feb8d8a9f5f60671f1e82d6381') prepare() { cd "${pkgname}-${pkgver}" cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } build() { cd "${pkgname}-${pkgver}" # Make sure the build fails if our system libgit2 is out # of range rather than silently starting to vendor it. export LIBGIT2_NO_VENDOR=1 CFLAGS+=' -ffat-lto-objects' 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() { depends+=(libgit2.so) 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 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE.txt } # vim: ts=2 sw=2 et: