rustfmt: use cargo buildstyle
This commit is contained in:
parent
f3cbebe56f
commit
421a26b220
1 changed files with 3 additions and 14 deletions
|
@ -1,27 +1,16 @@
|
||||||
# Template file for 'rustfmt'
|
# Template file for 'rustfmt'
|
||||||
pkgname=rustfmt
|
pkgname=rustfmt
|
||||||
version=0.9.0
|
version=0.9.0
|
||||||
revision=1
|
revision=2
|
||||||
hostmakedepends="cargo"
|
build_style=cargo
|
||||||
short_desc="Tool to find and fix Rust formatting issues"
|
short_desc="Tool to find and fix Rust formatting issues"
|
||||||
maintainer="Daniel Lee Ramírez <dleeram@protonmail.com>"
|
maintainer="Daniel Lee Ramírez <dleeram@protonmail.com>"
|
||||||
license="Apache-2.0, MIT"
|
license="Apache-2.0, MIT"
|
||||||
homepage="https://github.com/rust-lang-nursery/${pkgname}"
|
homepage="https://github.com/rust-lang-nursery/${pkgname}"
|
||||||
distfiles="${homepage}/archive/${version}.tar.gz"
|
distfiles="${homepage}/archive/${version}.tar.gz"
|
||||||
checksum=8c5627be2d3304af70c724f2f9114b14683d836475d0c5f98786c81eb9df420a
|
checksum=8c5627be2d3304af70c724f2f9114b14683d836475d0c5f98786c81eb9df420a
|
||||||
nocross=yes
|
|
||||||
|
|
||||||
do_build() {
|
post_install() {
|
||||||
cargo build --release
|
|
||||||
}
|
|
||||||
|
|
||||||
do_check() {
|
|
||||||
cargo test --release
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
vbin target/release/rustfmt
|
|
||||||
vbin target/release/cargo-fmt
|
|
||||||
vdoc README.md
|
vdoc README.md
|
||||||
vlicense LICENSE-APACHE
|
vlicense LICENSE-APACHE
|
||||||
vlicense LICENSE-MIT
|
vlicense LICENSE-MIT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue