PKGBUILDs/extra/eza/PKGBUILD

69 lines
2.1 KiB
Bash
Raw Normal View History

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-05-02 12:21:14 +00:00
pkgver=0.18.14
2024-05-03 12:29:09 +00:00
pkgrel=5
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"
2024-04-25 18:19:46 +00:00
arch=(x86_64)
license=(MIT)
provides=(exa)
replaces=(exa)
conflicts=(exa)
depends=(gcc-libs # libgcc_s.so
glibc # libc.so libm.so
2024-05-03 12:29:09 +00:00
libgit2
zlib)
2024-04-25 18:43:22 +00:00
makedepends=("cargo")
2024-04-25 18:19:46 +00:00
source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
2024-05-02 12:21:14 +00:00
sha256sums=('f8f42ed466c02eaaa2b157ef976d29f1c38a6ff13064be52baed70e4943f2481')
b2sums=('c27852afc92454d684390f737f1b70c7bb4b2a6c50ae68fd61ae99d7a1af2b8c14ea9ebfec129f3861a1a8bd5d569467b72416a4d4dc6ceabbc8353396523d62')
2023-11-02 18:55:21 +00:00
prepare() {
cd "${pkgname}-${pkgver}"
2024-04-25 18:19:46 +00:00
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
2023-11-02 18:55:21 +00:00
}
build() {
cd "${pkgname}-${pkgver}"
2024-04-25 18:19:46 +00:00
CFLAGS+=' -ffat-lto-objects'
2023-11-02 18:55:21 +00:00
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() {
2024-05-03 12:29:09 +00:00
depends+=(libgit2.so
zlib.so)
2023-11-02 18:55:21 +00:00
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: