[arch-commits] Commit in rust/trunk (PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Fri May 1 12:51:47 UTC 2015


    Date: Friday, May 1, 2015 @ 14:51:47
  Author: arodseth
Revision: 132586

Updated, but not released. Build takes forever.

Modified:
  rust/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-05-01 12:04:22 UTC (rev 132585)
+++ PKGBUILD	2015-05-01 12:51:47 UTC (rev 132586)
@@ -5,41 +5,39 @@
 pkgver=1.0.0.beta.3
 pkgrel=1
 arch=('x86_64' 'i686')
-pkgdesc='Safe, concurrent and practical programming language from Mozilla'
+pkgdesc='Systems programming language focused on safety, speed and concurrency'
 url='http://www.rust-lang.org/'
 license=('MIT' 'Apache')
 makedepends=('libffi' 'perl' 'python2' 'curl')
-checkdepends=('git' 'valgrind')
 source=("http://static.rust-lang.org/dist/rustc-${pkgver/.b/-b}-src.tar.gz"{,.asc})
 sha256sums=('e751bc8a8ad236c8865697f866b2863e224af56b0194ddf9f3edd71f9ff6545f'
             'SKIP')
 install="$pkgname.install"
 options=('staticlibs')
+validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') # Rust Language (Tag and Release Signing Key) <rust-key at rust-lang.org>
 #gpg --keyserver hkp://keys.gnupg.net --recv-keys 108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE
-validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') # Rust Language (Tag and Release Signing Key) <rust-key at rust-lang.org>
 
-build() {
+prepare() {
   cd "rustc-${pkgver/.b/-b}"
 
-  ./configure --prefix=/usr --disable-debug --disable-docs
-
-  # avoid python makedepend (force fallback to python2)
+  # Use Python 2
   sed -i 's/^PYTHONVERSION.*/PYTHONVERSION := 3/' src/llvm/Makefile.rules
+}
 
+build() {
+  cd "rustc-${pkgver/.b/-b}"
+
+  ./configure --prefix=/usr --disable-docs --release-channel=beta
   make
 }
 
-#check() {
-#  cd "rustc-${pkgver/.b/-b}"
-#  make check
-#}
-
 package() {
   cd "rustc-${pkgver/.b/-b}"
 
   make DESTDIR="$pkgdir" install
 
-  install -Dm644 LICENSE-APACHE "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE"
+  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"



More information about the arch-commits mailing list