mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +01:00
b6b0663c2b
d/rust-bindgen-0.68.1-x86_64-1.txz: Upgraded. l/glib2-2.76.5-x86_64-2.txz: Rebuilt. [PATCH] gkeyfile: Temporarily re-allow invalid escapes when parsing strings. l/netpbm-11.03.05-x86_64-1.txz: Upgraded. n/iproute2-6.5.0-x86_64-2.txz: Rebuilt. Fixed build/install script issues due to config files moving from /etc.
35 lines
898 B
Bash
Executable file
35 lines
898 B
Bash
Executable file
#!/bin/bash
|
|
|
|
#VERSION=$1
|
|
VERSION=0.68.1
|
|
|
|
rm -rf rust-bindgen-*.tar.?z cargo-rust-bindgen*
|
|
|
|
echo "Downloading rust-bindgen-$VERSION..."
|
|
|
|
wget --content-disposition "https://github.com/rust-lang/rust-bindgen/archive/refs/tags/v$VERSION.tar.gz"
|
|
|
|
tar xf rust-bindgen-$VERSION.tar.gz
|
|
|
|
tar cf rust-bindgen-$VERSION.tar rust-bindgen-$VERSION
|
|
|
|
cd rust-bindgen-$VERSION
|
|
|
|
if ! [ -f /usr/bin/cargo-vendor-filterer ]; then
|
|
echo "WARNING: Creating unfiltered vendor libs tarball!"
|
|
cargo vendor
|
|
else
|
|
cargo vendor-filterer --platform="x86_64-unknown-linux-gnu" --platform="i686-unknown-linux-gnu"
|
|
fi
|
|
|
|
mv vendor ../cargo-rust-bindgen-$VERSION
|
|
cd ..
|
|
|
|
tar cf cargo-rust-bindgen-$VERSION.tar cargo-rust-bindgen-$VERSION
|
|
|
|
plzip -9 cargo-rust-bindgen-$VERSION.tar
|
|
plzip -9 rust-bindgen-$VERSION.tar
|
|
|
|
rm -rf rust-bindgen-$VERSION
|
|
rm -rf cargo-rust-bindgen-$VERSION
|
|
rm -f rust-bindgen-$VERSION.tar.gz
|