2014-06-10 07:27:00 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Daniel Micay <danielmicay@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - makedepend on rust, configure to use local rust instead of nonexistent binary download
|
|
|
|
|
|
|
|
buildarch=4
|
|
|
|
|
|
|
|
pkgname=rust
|
2014-10-10 06:54:33 +00:00
|
|
|
pkgver=0.12.0
|
2014-06-10 07:27:00 +00:00
|
|
|
pkgrel=1
|
|
|
|
arch=('i686' 'x86_64')
|
2014-07-04 18:18:12 +00:00
|
|
|
pkgdesc='A safe, concurrent, practical language'
|
2014-06-10 07:27:00 +00:00
|
|
|
url='http://www.rust-lang.org/'
|
|
|
|
license=('MIT' 'Apache')
|
|
|
|
depends=(gcc shared-mime-info)
|
|
|
|
makedepends=(libffi perl python2 curl rust)
|
2014-07-03 13:22:08 +00:00
|
|
|
source=("http://static.rust-lang.org/dist/rust-${pkgver}.tar.gz"
|
|
|
|
"http://static.rust-lang.org/dist/rust-${pkgver}.tar.gz.asc")
|
2014-10-10 06:54:33 +00:00
|
|
|
sha256sums=('883e66b24d90d9957c5c538469fcde6f0668e5fb6448beecfc60884060e769b7'
|
2014-07-03 13:22:08 +00:00
|
|
|
'SKIP')
|
2014-06-10 07:27:00 +00:00
|
|
|
install=rust.install
|
|
|
|
options=(staticlibs)
|
|
|
|
|
|
|
|
build() {
|
2014-07-04 17:34:11 +00:00
|
|
|
cd rust-$pkgver
|
2014-06-10 07:27:00 +00:00
|
|
|
|
2014-10-10 06:54:33 +00:00
|
|
|
./configure --prefix=/usr --disable-debug --disable-docs --disable-verify-install --enable-local-rust --local-rust-root=/usr
|
2014-06-10 07:27:00 +00:00
|
|
|
|
|
|
|
# avoid python makedepend (force fallback to python2)
|
|
|
|
sed -i 's/^PYTHONVERSION.*/PYTHONVERSION := 3/' src/llvm/Makefile.rules
|
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
#check() {
|
2014-07-04 17:34:11 +00:00
|
|
|
#cd rust-$pkgver
|
2014-06-10 07:27:00 +00:00
|
|
|
#make check
|
|
|
|
#}
|
|
|
|
|
|
|
|
package() {
|
2014-07-04 17:34:11 +00:00
|
|
|
cd rust-$pkgver
|
2014-06-10 07:27:00 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
mkdir -p "$pkgdir/usr/share/vim" "$pkgdir/usr/share/licenses/$pkgname"
|
|
|
|
|
|
|
|
cp -a src/etc/vim "$pkgdir/usr/share/vim/vimfiles"
|
|
|
|
find "$pkgdir/usr/share/vim" -type f -exec chmod 644 {} +
|
|
|
|
find "$pkgdir/usr/share/vim" -type d -exec chmod 755 {} +
|
|
|
|
|
|
|
|
install -Dm644 src/etc/zsh/_rust "$pkgdir/usr/share/zsh/site-functions/_rust"
|
|
|
|
install -Dm644 src/etc/kate/rust.xml "$pkgdir/usr/share/apps/katepart/syntax/rust.xml"
|
|
|
|
install -Dm644 src/etc/gedit/share/mime/packages/rust.xml \
|
|
|
|
"$pkgdir/usr/share/mime/packages/rust.xml"
|
|
|
|
install -Dm644 src/etc/gedit/share/gtksourceview-3.0/language-specs/rust.lang \
|
|
|
|
"$pkgdir/usr/share/gtksourceview-3.0/language-specs/rust.lang"
|
|
|
|
|
|
|
|
install -m644 LICENSE-APACHE "$pkgdir/usr/share/licenses/$pkgname"
|
|
|
|
install -m644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname"
|
|
|
|
|
|
|
|
cd src/etc/emacs
|
|
|
|
install -Dm644 rust-mode.el "$pkgdir/usr/share/emacs/site-lisp/rust-mode.el"
|
|
|
|
|
|
|
|
cd "$pkgdir/usr"
|
|
|
|
|
|
|
|
cd lib
|
|
|
|
rm rustlib/manifest
|
|
|
|
ln -sf rustlib/$CARCH-unknown-linux-gnu/lib/* .
|
|
|
|
}
|