slackware-current/source/d/rust-bindgen/fetch-sources.sh
Patrick J Volkerding 16aecb6aa3 Mon Nov 6 20:15:40 UTC 2023
a/btrfs-progs-6.6.1-x86_64-1.txz:  Upgraded.
d/mercurial-6.5.3-x86_64-1.txz:  Upgraded.
d/rust-bindgen-0.69.1-x86_64-1.txz:  Upgraded.
l/exiv2-0.28.1-x86_64-1.txz:  Upgraded.
l/jasper-4.0.1-x86_64-1.txz:  Upgraded.
x/fcitx5-5.1.4-x86_64-1.txz:  Upgraded.
xap/gimp-2.10.36-x86_64-1.txz:  Upgraded.
2023-11-06 21:58:15 +01:00

35 lines
898 B
Bash
Executable file

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