1
0
Fork 0
mirror of git://slackware.nl/current.git synced 2025-01-16 15:41:42 +01:00
slackware-current/source/d/rust-bindgen/fetch-sources.sh
Patrick J Volkerding b24b3c4a92 Sat Aug 17 18:14:54 UTC 2024
a/eudev-3.2.14-x86_64-2.txz:  Rebuilt.
  Add a few more modules to /lib/modprobe.d/watchdog.conf.
a/kmod-33-x86_64-1.txz:  Upgraded.
ap/sc-im-0.8.4-x86_64-1.txz:  Upgraded.
ap/scdoc-1.11.3-x86_64-1.txz:  Added.
  This is needed to build kmod-33.
d/luajit-2.1.1723675123-x86_64-1.txz:  Upgraded.
d/rust-bindgen-0.70.0-x86_64-1.txz:  Upgraded.
l/librsvg-2.58.3-x86_64-1.txz:  Upgraded.
x/mesa-24.2.0-x86_64-2.txz:  Rebuilt.
  Updated the subprojects and recompiled.
2024-08-17 20:30:46 +02:00

35 lines
898 B
Bash
Executable file

#!/bin/bash
#VERSION=$1
VERSION=0.70.0
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