exa: use cargo buildstyle
This commit is contained in:
parent
5623f1ff62
commit
68055da707
|
@ -1,8 +1,9 @@
|
||||||
# Template file for 'exa'
|
# Template file for 'exa'
|
||||||
pkgname=exa
|
pkgname=exa
|
||||||
version=0.8.0
|
version=0.8.0
|
||||||
revision=4
|
revision=5
|
||||||
hostmakedepends="rust cargo cmake"
|
build_style=cargo
|
||||||
|
hostmakedepends="cmake"
|
||||||
makedepends="libgit2-devel"
|
makedepends="libgit2-devel"
|
||||||
short_desc="A replacement for ls"
|
short_desc="A replacement for ls"
|
||||||
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
||||||
|
@ -10,21 +11,15 @@ license="MIT"
|
||||||
homepage="https://the.exa.website/"
|
homepage="https://the.exa.website/"
|
||||||
distfiles="https://github.com/ogham/exa/archive/v${version}.tar.gz"
|
distfiles="https://github.com/ogham/exa/archive/v${version}.tar.gz"
|
||||||
checksum=07085fd784d553b7c3b62b5a52e4635580d6154f47e6d64245ec0588638dee3e
|
checksum=07085fd784d553b7c3b62b5a52e4635580d6154f47e6d64245ec0588638dee3e
|
||||||
nocross=yes # rust
|
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
# https://github.com/ogham/exa/issues/301
|
# https://github.com/ogham/exa/issues/301
|
||||||
i686*) cargo update --package datetime --precise 0.4.7 ;;
|
i686*|arm*) cargo update --package datetime --precise 0.4.7 ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
post_install() {
|
||||||
cargo build --release
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
vbin target/release/exa
|
|
||||||
vman contrib/man/exa.1
|
vman contrib/man/exa.1
|
||||||
vinstall contrib/completions.bash 0644 usr/share/bash-completion/completions exa
|
vinstall contrib/completions.bash 0644 usr/share/bash-completion/completions exa
|
||||||
vinstall contrib/completions.zsh 0644 usr/share/zsh/site-functions _exa
|
vinstall contrib/completions.zsh 0644 usr/share/zsh/site-functions _exa
|
||||||
|
|
Loading…
Reference in New Issue