diff --git a/extra/eza/.SRCINFO b/extra/eza/.SRCINFO new file mode 100644 index 000000000..ccfec3562 --- /dev/null +++ b/extra/eza/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = eza + pkgdesc = A modern replacement for ls (community fork of exa) + pkgver = 0.15.2 + pkgrel = 1 + url = https://github.com/eza-community/eza + arch = x86_64 + license = MIT + makedepends = cargo + makedepends = pandoc + depends = libgit2.so + provides = exa + conflicts = exa + replaces = exa + source = eza-0.15.2.tar.gz::https://github.com/eza-community/eza/archive/v0.15.2.tar.gz + sha256sums = b8b00af94d9b8f254b5a14af3da84542893617f810dcdad782e5667a1e7af1f9 + b2sums = a533833e48a2aae6836f11928f63fa09ac1f7a7c675841509b8e829afee94e04981f1f1f1af099be1f178d77296057c5497dfd3eac379452e62e6339dea22f73 + +pkgname = eza diff --git a/extra/eza/PKGBUILD b/extra/eza/PKGBUILD new file mode 100644 index 000000000..7ba36b3e0 --- /dev/null +++ b/extra/eza/PKGBUILD @@ -0,0 +1,62 @@ +# 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.15.2 +pkgrel=1 +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=('b8b00af94d9b8f254b5a14af3da84542893617f810dcdad782e5667a1e7af1f9') +b2sums=('a533833e48a2aae6836f11928f63fa09ac1f7a7c675841509b8e829afee94e04981f1f1f1af099be1f178d77296057c5497dfd3eac379452e62e6339dea22f73') + +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: