From 08360afd9c21329157ba57b4c4173db6e6d230dd Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sun, 5 Apr 2015 23:27:00 +0200 Subject: [PATCH] New package: cargo-0.0.20150405 --- srcpkgs/cargo/template | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/cargo/template diff --git a/srcpkgs/cargo/template b/srcpkgs/cargo/template new file mode 100644 index 0000000000..0825aa949d --- /dev/null +++ b/srcpkgs/cargo/template @@ -0,0 +1,32 @@ +# Template file for 'cargo' +pkgname=cargo +version=0.0.20150405 +revision=1 +_githash=3499c8ec8eb8ce65ec5bd78ecd8bbc610906d017 +_githash_installer=ebc6b04c29591108d3f28e724b4b9b74cd1232e6 +wrksrc="${pkgname}-${_githash}" +build_style=gnu-configure +hostmakedepends="rust python curl cmake pkg-config" +makedepends="libressl-devel zlib-devel" +depends="rust" +short_desc="Rust package manager" +maintainer="Christian Neukirchen " +license="MIT, Apache-2.0" +homepage="https://crates.io/" +distfiles="https://github.com/rust-lang/${pkgname}/archive/${_githash}.tar.gz + https://github.com/rust-lang/rust-installer/archive/${_githash_installer}.tar.gz" +checksum="eb6e0365af8fe8a0d78d2caf234ee05c66ca63b13b9396fe83f3ef452f3f0c84 + a6f119be6105b911131eb89e6919dfa08fa849e6f5bc46ced24adc2075d39b71" +nocross=yes + +post_extract() { + rm -rf src/rust-installer + mv ../rust-installer-${_githash_installer} src/rust-installer +} + +post_install() { + rm -rf ${DESTDIR}/usr/lib/rustlib ${DESTDIR}/usr/share/doc/cargo + vlicense LICENSE-APACHE + vlicense LICENSE-MIT + vlicense LICENSE-THIRD-PARTY +}