mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 17:57:14 +08:00
50 lines
1.5 KiB
Bash
50 lines
1.5 KiB
Bash
# Originally imported from Arch Linux with
|
|
# Arch Maintainer: Alexander Rødseth <rodseth@gmail.com>
|
|
# Arch Contributor: Daniel Micay <danielmicay@gmail.com>
|
|
|
|
pkgname=rust
|
|
pkgver=1.1.0
|
|
epoch=1
|
|
pkgrel=1
|
|
arch=('x86_64' 'i686')
|
|
pkgdesc='Systems programming language focused on safety, speed and concurrency'
|
|
url='http://www.rust-lang.org/'
|
|
license=('MIT' 'Apache')
|
|
makedepends=('libffi' 'perl' 'python2' 'curl')
|
|
source=("http://static.rust-lang.org/dist/rustc-$pkgver-src.tar.gz"{,.asc})
|
|
sha256sums=('cb09f443b37ec1b81fe73c04eb413f9f656859cf7d00bc5088008cbc2a63fa8a'
|
|
'SKIP')
|
|
install="$pkgname.install"
|
|
options=(staticlibs !strip)
|
|
validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') # Rust Language (Tag and Release Signing Key) <rust-key@rust-lang.org>
|
|
#gpg --keyserver hkp://keys.gnupg.net --recv-keys 108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE
|
|
|
|
prepare() {
|
|
cd "rustc-$pkgver"
|
|
|
|
sed -i 's/^PYTHONVERSION.*/PYTHONVERSION := 3/' src/llvm/Makefile.rules
|
|
}
|
|
|
|
build() {
|
|
cd "rustc-$pkgver"
|
|
|
|
./configure --prefix=/usr --disable-docs --release-channel=stable
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "rustc-$pkgver"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -Dm644 LICENSE-APACHE \
|
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE"
|
|
install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT"
|
|
|
|
cd "$pkgdir/usr/lib"
|
|
rm rustlib/{components,manifest-rustc,rust-installer-version}
|
|
ln -sf rustlib/$CARCH-unknown-linux-gnu/lib/*.so .
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|