mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
extra/rust to 1.45.0-2
This commit is contained in:
parent
732976e891
commit
c393e67147
1 changed files with 8 additions and 6 deletions
|
@ -1,4 +1,5 @@
|
|||
# Maintainer: Johannes Löthberg <johannes@kyriasis.com>
|
||||
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
||||
# Contributor: Alexander F Rødseth <xyproto@archlinux.org>
|
||||
# Contributor: Daniel Micay <danielmicay@gmail.com>
|
||||
# Contributor: userwithuid <userwithuid@gmail.com>
|
||||
|
@ -16,7 +17,7 @@ highmem=1
|
|||
pkgname=('rust' 'rust-docs')
|
||||
epoch=1
|
||||
pkgver=1.45.0
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
|
||||
_llvm_ver=10.0.0
|
||||
|
||||
|
@ -49,6 +50,7 @@ prepare() {
|
|||
link-shared = true
|
||||
|
||||
[build]
|
||||
tools = ["cargo", "rls", "clippy", "miri", "rustfmt", "analysis", "src"]
|
||||
cargo = "/usr/bin/cargo"
|
||||
rustc = "/usr/bin/rustc"
|
||||
python = "/usr/bin/python"
|
||||
|
@ -131,7 +133,7 @@ package_rust() {
|
|||
|
||||
cd "rustc-$pkgver-src"
|
||||
|
||||
mv dest-rust/* "$pkgdir"
|
||||
cp -a dest-rust/* "$pkgdir"
|
||||
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE*
|
||||
|
||||
# delete unnecesary files, e.g. components and manifest files only used for the uninstall script
|
||||
|
@ -142,8 +144,8 @@ package_rust() {
|
|||
# overwrite them with symlinks to the per-architecture versions
|
||||
ln -srft "$pkgdir"/usr/lib x86_64-unknown-linux-gnu/lib/*.so
|
||||
|
||||
install -d "$pkgdir"/usr/share/bash-completion
|
||||
mv "$pkgdir"/etc/bash_completion.d/ "$pkgdir"/usr/share/bash-completion/completions/
|
||||
install -d "$pkgdir"/usr/share/bash-completion/
|
||||
mv "$pkgdir"/etc/bash_completion.d "$pkgdir"/usr/share/bash-completion/completions
|
||||
}
|
||||
|
||||
package_rust-docs() {
|
||||
|
@ -152,8 +154,8 @@ package_rust-docs() {
|
|||
cd "rustc-$pkgver-src"
|
||||
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE*
|
||||
|
||||
install -d "$pkgdir"/usr/share/doc
|
||||
mv dest-doc/* "$pkgdir"/usr/share/doc
|
||||
install -d "$pkgdir"/usr/share/
|
||||
cp -a dest-doc "$pkgdir"/usr/share/doc
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
|
Loading…
Reference in a new issue