mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
68 lines
2.1 KiB
Bash
68 lines
2.1 KiB
Bash
# 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
|
||
pkgver=0.18.15
|
||
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=(gcc-libs # libgcc_s.so
|
||
glibc # libc.so libm.so
|
||
libgit2
|
||
zlib)
|
||
makedepends=("cargo")
|
||
source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
|
||
sha256sums=('53c6ea67804dbaa330918f6ce62a1cff866a145b2395c606903c0d128dd8564f')
|
||
b2sums=('515751316fadc656066609c99796b895773985524974fb25c9e6599d11f7927cfbe19fe3b8113f0b0bc1740da4887cf9991d919eb045649ccad558eb919c2b8b')
|
||
|
||
prepare() {
|
||
cd "${pkgname}-${pkgver}"
|
||
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
||
}
|
||
|
||
build() {
|
||
cd "${pkgname}-${pkgver}"
|
||
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
|
||
libz.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 LICEN?E "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||
}
|
||
|
||
# vim: ts=2 sw=2 et:
|