void-packages/srcpkgs/exa/template
Julian Paul Dasmarinas a0f33d672f exa: Modified install directory for bash completion script
Changed the location of bash completion from /usr/share/bash-completions
to /usr/share/bash-completion/completions
2018-09-23 10:10:05 -03:00

32 lines
857 B
Bash

# Template file for 'exa'
pkgname=exa
version=0.8.0
revision=4
hostmakedepends="rust cargo cmake"
makedepends="libgit2-devel"
short_desc="A replacement for ls"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="MIT"
homepage="https://the.exa.website/"
distfiles="https://github.com/ogham/exa/archive/v${version}.tar.gz"
checksum=07085fd784d553b7c3b62b5a52e4635580d6154f47e6d64245ec0588638dee3e
nocross=yes # rust
pre_build() {
case "$XBPS_TARGET_MACHINE" in
# https://github.com/ogham/exa/issues/301
i686*) cargo update --package datetime --precise 0.4.7 ;;
esac
}
do_build() {
cargo build --release
}
do_install() {
vbin target/release/exa
vman contrib/man/exa.1
vinstall contrib/completions.bash 0644 usr/share/bash-completion/completions exa
vinstall contrib/completions.zsh 0644 usr/share/zsh/site-functions _exa
vlicense LICENCE
}