parent
8fc2c3950d
commit
8003845168
1 changed files with 28 additions and 0 deletions
28
srcpkgs/rustfmt/template
Normal file
28
srcpkgs/rustfmt/template
Normal file
|
@ -0,0 +1,28 @@
|
|||
# Template file for 'rustfmt'
|
||||
pkgname=rustfmt
|
||||
version=0.9.0
|
||||
revision=1
|
||||
hostmakedepends="cargo"
|
||||
short_desc="Tool to find and fix Rust formatting issues"
|
||||
maintainer="Daniel Lee Ramírez <dleeram@protonmail.com>"
|
||||
license="Apache-2.0, MIT"
|
||||
homepage="https://github.com/rust-lang-nursery/${pkgname}"
|
||||
distfiles="${homepage}/archive/${version}.tar.gz"
|
||||
checksum=8c5627be2d3304af70c724f2f9114b14683d836475d0c5f98786c81eb9df420a
|
||||
nocross=yes
|
||||
|
||||
do_build() {
|
||||
cargo build --release
|
||||
}
|
||||
|
||||
do_check() {
|
||||
cargo test --release
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vbin target/release/rustfmt
|
||||
vbin target/release/cargo-fmt
|
||||
vdoc README.md
|
||||
vlicense LICENSE-APACHE
|
||||
vlicense LICENSE-MIT
|
||||
}
|
Loading…
Reference in a new issue