xsv: use cargo buildstyle

This commit is contained in:
Rasmus Thomsen 2018-10-02 01:21:25 +02:00 committed by Enno Boland
parent 1d6430d23e
commit c9a8816822

View file

@ -1,21 +1,16 @@
# Template file for 'xsv' # Template file for 'xsv'
pkgname=xsv pkgname=xsv
version=0.13.0 version=0.13.0
revision=1 revision=2
hostmakedepends="cargo rust" build_style=cargo
short_desc="Fast CSV toolkit written in Rust" short_desc="Fast CSV toolkit written in Rust"
maintainer="Leah Neukirchen <leah@vuxu.org>" maintainer="Leah Neukirchen <leah@vuxu.org>"
license="Public Domain, MIT" license="Public Domain, MIT"
homepage="https://github.com/BurntSushi/xsv/" homepage="https://github.com/BurntSushi/xsv/"
distfiles="https://github.com/BurntSushi/${pkgname}/archive/${version}.tar.gz" distfiles="https://github.com/BurntSushi/${pkgname}/archive/${version}.tar.gz"
checksum=2b75309b764c9f2f3fdc1dd31eeea5a74498f7da21ae757b3ffd6fd537ec5345 checksum=2b75309b764c9f2f3fdc1dd31eeea5a74498f7da21ae757b3ffd6fd537ec5345
nocross=yes
do_build() { post_install() {
cargo build --release
}
do_install() {
vbin target/release/xsv
vlicense LICENSE-MIT vlicense LICENSE-MIT
vlicense UNLICENSE vlicense UNLICENSE
} }