slackware-current/source/d/cbindgen/fetch-sources.sh
Patrick J Volkerding 38c180f037 Tue Aug 29 18:55:59 UTC 2023
a/coreutils-9.4-x86_64-1.txz:  Upgraded.
d/cbindgen-0.25.0-x86_64-1.txz:  Upgraded.
l/ffmpeg-5.1.3-x86_64-2.txz:  Rebuilt.
  Patched and recompiled against vulkan-sdk-1.3.250.0.
  Thanks to lucabon.
l/pipewire-0.3.79-x86_64-1.txz:  Upgraded.
xfce/xfce4-whiskermenu-plugin-2.8.0-x86_64-1.txz:  Upgraded.
2023-08-29 21:29:22 +02:00

34 lines
831 B
Bash
Executable file

#!/bin/bash
VERSION=${VERSION:-0.25.0}
rm -rf cbindgen-*.tar.?z cargo-cbindgen*
echo "Downloading cbindgen-$VERSION..."
wget --content-disposition "https://github.com/eqrion/cbindgen/archive/refs/tags/v$VERSION.tar.gz"
tar xf cbindgen-$VERSION.tar.gz
tar cf cbindgen-$VERSION.tar cbindgen-$VERSION
cd cbindgen-$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-cbindgen-$VERSION
cd ..
tar cf cargo-cbindgen-$VERSION.tar cargo-cbindgen-$VERSION
plzip -9 cargo-cbindgen-$VERSION.tar
plzip -9 cbindgen-$VERSION.tar
rm -rf cbindgen-$VERSION
rm -rf cargo-cbindgen-$VERSION
rm -f cbindgen-$VERSION.tar.gz