summaryrefslogtreecommitdiff
path: root/build-support/disabled/rust-bin/PKGBUILD
blob: ece1dfaf8eccff039f8c685d7ae6153215f440f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: Andreas Baumann <mail@andreasbaumann.cc>

pkgname=rust-bin
pkgver=1.49.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=('8b14446df82f3707d69cf58fed92f18e0bff91621c62baf89288ef70e3e92981'
                   'SKIP')
sha256sums_pentium4=('5371bfa2c8e566aa283acdfa93d24b981c789d7c040ac1ca74e76bff1c7f6598'
                     'SKIP')
sha256sums_i686=('5371bfa2c8e566aa283acdfa93d24b981c789d7c040ac1ca74e76bff1c7f6598'
                 'SKIP')

validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE'  # Rust Language (Tag and Release Signing Key) <rust-key@rust-lang.org>
              '474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar@redhat.com>

case "${CARCH}" in
  x86_64)               _ARCH='x86_64-unknown-linux-gnu';;
  i686|pentium4)   _ARCH='i686-unknown-linux-gnu';;
esac

package() {
  cd "rust-$pkgver-$_ARCH"

  ./install.sh --prefix=/usr --destdir="$pkgdir"
}