From 49b3e3291c93355792757f94af9774617ed3d7bf Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 20 Oct 2019 19:04:25 +0200 Subject: added some build-support for rust --- build-support/extra/rust-bin/PKGBUILD | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 build-support/extra/rust-bin/PKGBUILD (limited to 'build-support/extra/rust-bin/PKGBUILD') diff --git a/build-support/extra/rust-bin/PKGBUILD b/build-support/extra/rust-bin/PKGBUILD new file mode 100644 index 00000000..125dac5f --- /dev/null +++ b/build-support/extra/rust-bin/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Andreas Baumann + +pkgname=rust-bin +pkgver=1.38.0 +pkgrel=1 +pkgdesc='Binary precompiled packages for Rust' +url='https://www.rust-lang.org/' +arch=(x86_64 pentium4 i686) +license=('MIT' 'Apache') +provides=('rust' 'cargo') +conflicts=('rust' 'cargo') +options=('!emptydirs') + +source_x86_64=("https://static.rust-lang.org/dist/rust-$pkgver-x86_64-unknown-linux-gnu.tar.gz"{,.asc}) +source_pentium4=("https://static.rust-lang.org/dist/rust-$pkgver-i686-unknown-linux-gnu.tar.gz"{,.asc}) +source_i686=("https://static.rust-lang.org/dist/rust-$pkgver-i686-unknown-linux-gnu.tar.gz"{,.asc}) + +sha256sums_x86_64=('cb573229bfd32928177c3835fdeb62d52da64806b844bc1095c6225b0665a1cb' + 'SKIP') +sha256sums_pentium4=('41aed8a350e24a0cac1444ed99b3dd24a90bc581dd88cb420c6e547d6b5f57af' + 'SKIP') +sha256sums_i686=('41aed8a350e24a0cac1444ed99b3dd24a90bc581dd88cb420c6e547d6b5f57af' + 'SKIP') + +validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE' # Rust Language (Tag and Release Signing Key) + '474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard + +case "${CARCH}" in + x86_64) _ARCH='x86_64-unknown-linux-gnu';; + pentium4) _ARCH='i686-unknown-linux-gnu';; + i686) _ARCH='i686-unknown-linux-gnu';; +esac + +package() { + cd "rust-$pkgver-$_ARCH" + + ./install.sh --prefix=/usr --destdir="$pkgdir" +} -- cgit v1.2.3-70-g09d2