mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
62 lines
2 KiB
Bash
62 lines
2 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.16.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=('4eef35467095f6006eb5c0431e6cafa514a885f571dcf9fef7c7d5952e90688f')
|
||
b2sums=('5f7f7c5c0ff2d9822efd640f19dd11231dc7234c12359e8e3925cd2be7f65c0c2df53afb6fe2b6ce65a223f256b680e2cc5af355b0370af6e71295ce48adaa19')
|
||
|
||
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:
|