From 800384516871d495515673805181f2a618fc0b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Lee=20Ram=C3=ADrez?= Date: Wed, 21 Feb 2018 01:48:57 +0000 Subject: [PATCH] New package: rustfmt-0.9.0 Closes: #11775 [via git-merge-pr] --- srcpkgs/rustfmt/template | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/rustfmt/template diff --git a/srcpkgs/rustfmt/template b/srcpkgs/rustfmt/template new file mode 100644 index 00000000000..24076e63d4c --- /dev/null +++ b/srcpkgs/rustfmt/template @@ -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 " +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 +}