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-10-09 10:29:53 +00:00
|
|
|
|
pkgver=0.20.2
|
2024-07-01 12:45:28 +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"
|
2024-04-25 18:19:46 +00:00
|
|
|
|
arch=(x86_64)
|
2024-09-26 12:26:39 +00:00
|
|
|
|
license=(EUPL-1.2)
|
2024-04-25 18:19:46 +00:00
|
|
|
|
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-06-29 23:28:15 +00:00
|
|
|
|
makedepends=(cargo)
|
2024-07-01 12:45:28 +00:00
|
|
|
|
source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
|
2024-10-09 10:29:53 +00:00
|
|
|
|
sha256sums=('8d5a573906fd362e27c601e8413b2c96b546bbac7cdedcbd1defe1332f42265d')
|
|
|
|
|
b2sums=('2bedfe55895223d468b4d76dacce8602c8fc0d8219e95ecb3f705b77cf4cac05f01f2914c8ba9ef3d462184080f5beaeeeb8fa281a48139e242b3aa2a431d5a2')
|
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-06-29 23:28:15 +00:00
|
|
|
|
# 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
|
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
|
2024-05-03 13:49:39 +00:00
|
|
|
|
libz.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"
|
|
|
|
|
|
2024-09-26 12:26:39 +00:00
|
|
|
|
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE.txt
|
2023-11-02 18:55:21 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et:
|