Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions rust/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ rust_dist_server=https://static.rust-lang.org/dist

pkgname=rust
pkgver=1.91.1
pkgrel=2
pkgrel=3
pkgdesc="Systems programming language focused on safety, speed and concurrency"
arch=('x86_64')
url="https://www.rust-lang.org/"
Expand Down Expand Up @@ -38,7 +38,7 @@ source=("${rust_dist_server}/${pkgname}c-${pkgver}-src.tar.xz"{,.asc}
noextract=(${pkgname}c-${pkgver}-src.tar.xz)
sha256sums=('66401bb815e236cc6b2aacbbe23b61b286c1fe27a67902e7c0222cfe77b3dbab'
'SKIP'
'f5e4a8d2bc0b1b66d945f54285cc66bf088b05c5e3dfbb12d5d1d05dbd1de203')
'c24975dfa00b1b8e133c5940790640a5327f683ff22ad123d096a8fb37f0f397')
validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE' # Rust Language (Tag and Release Signing Key) <rust-key@rust-lang.org>
'474E22316ABF4785A88C6E8EA2C794A986419D8A' # Tom Stellard <tstellar@redhat.com>
'B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans@chromium.org>
Expand Down Expand Up @@ -98,6 +98,9 @@ package_rust() {
rm components install.log manifest-* rust-installer-version uninstall.sh
rm "${pkgdir}/etc/target-spec-json-schema.json"

# workaround for https://github.com/msys2/MSYS2-packages/issues/5784
cp "${pkgdir}"/usr/lib/rustlib/x86_64-pc-cygwin/lib/std-*.dll -t "${pkgdir}/usr/bin"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be a link?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that for windows-gnu it's a copied file, but didn't check rust sources

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, yes. It's a copied one.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably a good idea to hardlink it, so as not to waste space.


install -d "${pkgdir}/usr/share/bash-completion/completions"
mv "${pkgdir}/etc/bash_completion.d/cargo" \
"${pkgdir}/usr/share/bash-completion/completions/cargo"
Expand Down
2 changes: 1 addition & 1 deletion rust/bootstrap.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tools = [
"rustdoc",
"rustfmt",
]
build-dir = "cygwin-build-8"
build-dir = "cygwin-build-9"

# Do not generate docs for cygwin
docs = false
Expand Down