slackware-current/source/d/rust-bindgen/fetch-sources.sh
Patrick J Volkerding 362e0f90f1 Sun Feb 4 19:20:00 UTC 2024
ap/pamixer-1.6-x86_64-1.txz:  Upgraded.
d/rust-bindgen-0.69.4-x86_64-1.txz:  Upgraded.
l/cxxopts-3.1.1-x86_64-1.txz:  Added.
  Needed by pamixer-1.6.
l/gc-8.2.6-x86_64-1.txz:  Upgraded.
l/libxml2-2.12.5-x86_64-1.txz:  Upgraded.
  Fix the following security issue:
  xmlreader: Don't expand XIncludes when backtracking.
  For more information, see:
    https://www.cve.org/CVERecord?id=CVE-2024-25062
  (* Security fix *)
x/bitmap-1.1.1-x86_64-1.txz:  Upgraded.
x/xditview-1.0.7-x86_64-1.txz:  Upgraded.
x/xkbcomp-1.4.7-x86_64-1.txz:  Upgraded.
x/xkbutils-1.0.6-x86_64-1.txz:  Upgraded.
x/xmore-1.0.4-x86_64-1.txz:  Upgraded.
x/xprop-1.2.7-x86_64-1.txz:  Upgraded.
2024-02-04 20:59:45 +01:00

35 lines
898 B
Bash
Executable file

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