summaryrefslogtreecommitdiff
path: root/community/rust/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/rust/PKGBUILD')
-rw-r--r--community/rust/PKGBUILD20
1 files changed, 11 insertions, 9 deletions
diff --git a/community/rust/PKGBUILD b/community/rust/PKGBUILD
index c9530fd58..b6831ab5d 100644
--- a/community/rust/PKGBUILD
+++ b/community/rust/PKGBUILD
@@ -1,17 +1,18 @@
-# $Id: PKGBUILD 93472 2013-07-04 02:25:38Z thestinger $
+# $Id: PKGBUILD 97658 2013-09-27 01:45:47Z thestinger $
# Maintainer: Daniel Micay <danielmicay@gmail.com>
pkgname=rust
-pkgver=0.7
+pkgver=0.8
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc='A safe, concurrent, practical language'
url='http://www.rust-lang.org/'
license=('MIT' 'Apache')
depends=(gcc shared-mime-info)
-makedepends=(libffi perl python2 curl chrpath emacs-nox)
-optdepends=('haskell-pandoc: documentation generator (rustdoc)')
-source=("http://static.rust-lang.org/dist/rust-${pkgver}.tar.gz")
-sha256sums=('0b88b8a4489382e0a69214eaab88e2e7c316ec33c164af0d3b53630b17590df0')
+makedepends=(libffi perl python2 curl chrpath)
+source=("http://static.rust-lang.org/dist/rust-${pkgver}.tar.gz"
+ "http://static.rust-lang.org/dist/rust-${pkgver}.tar.gz.asc")
+sha256sums=('42f791ab1537357fe0f63d67ffe6bcb64ecf16b2bd3f1484ab589823f5914182'
+ 'SKIP')
install=rust.install
build() {
@@ -51,12 +52,13 @@ package() {
install -m644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname"
cd src/etc/emacs
- make
- mkdir -p "$pkgdir/usr/share/emacs/site-lisp/"
- install -Dm644 cm-mode.el{,c} rust-mode.el{,c} "$pkgdir/usr/share/emacs/site-lisp/"
+ install -Dm644 rust-mode.el "$pkgdir/usr/share/emacs/site-lisp/rust-mode.el"
cd "$pkgdir/usr"
# https://github.com/mozilla/rust/issues/5219
chrpath -d bin/* lib/*.so lib/rustc/*/lib/*.so
+
+ cd lib
+ ln -sf rustc/$CARCH-unknown-linux-gnu/lib/* .
}