From 373303848b4c62797bc889c360d843d206752f8c Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Thu, 31 Oct 2019 22:09:38 +0100 Subject: [PATCH] new package: rust-src-1.38.0 --- srcpkgs/rust-src | 1 + srcpkgs/rust/template | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 120000 srcpkgs/rust-src diff --git a/srcpkgs/rust-src b/srcpkgs/rust-src new file mode 120000 index 00000000000000..6ef8575b5fa418 --- /dev/null +++ b/srcpkgs/rust-src @@ -0,0 +1 @@ +rust \ No newline at end of file diff --git a/srcpkgs/rust/template b/srcpkgs/rust/template index 2f5e5def714327..9f5c3352019a7c 100644 --- a/srcpkgs/rust/template +++ b/srcpkgs/rust/template @@ -293,3 +293,12 @@ rust-std_package() { vmove usr/lib/rustlib } } + +rust-src_package() { + short_desc+=" - sources" + archs=noarch + pkg_install() { + vmkdir usr/src/rust/${version}/ + vcopy src/* usr/src/rust/${version}/ + } +}