slackware-current/source/d/rust-bindgen/fetch-sources.sh
Patrick J Volkerding 8bd7c85cc3 Thu Feb 9 00:59:27 UTC 2023
a/e2fsprogs-1.47.0-x86_64-1.txz:  Upgraded.
ap/cdrdao-1.2.5-x86_64-1.txz:  Upgraded.
ap/inxi-3.3.25_1-noarch-1.txz:  Upgraded.
d/ruby-3.2.1-x86_64-1.txz:  Upgraded.
d/rust-bindgen-0.64.0-x86_64-1.txz:  Upgraded.
l/SDL2-2.26.3-x86_64-1.txz:  Upgraded.
l/gtkmm3-3.24.7-x86_64-1.txz:  Upgraded.
n/stunnel-5.68-x86_64-1.txz:  Upgraded.
xap/mozilla-thunderbird-102.7.2-x86_64-1.txz:  Upgraded.
  This is a bugfix release.
  For more information, see:
    https://www.mozilla.org/en-US/thunderbird/102.7.2/releasenotes/
2023-02-09 02:38:53 +01:00

35 lines
898 B
Bash
Executable file

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