[arch-commits] Commit in rust/repos (6 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Sun Dec 6 02:33:29 UTC 2015
Date: Sunday, December 6, 2015 @ 03:33:28
Author: bpiotrowski
Revision: 148768
archrelease: copy trunk to community-staging-x86_64, community-staging-i686
Added:
rust/repos/community-staging-i686/
rust/repos/community-staging-i686/PKGBUILD
(from rev 148767, rust/trunk/PKGBUILD)
rust/repos/community-staging-i686/rust.install
(from rev 148767, rust/trunk/rust.install)
rust/repos/community-staging-x86_64/
rust/repos/community-staging-x86_64/PKGBUILD
(from rev 148767, rust/trunk/PKGBUILD)
rust/repos/community-staging-x86_64/rust.install
(from rev 148767, rust/trunk/rust.install)
---------------------------------------+
community-staging-i686/PKGBUILD | 49 ++++++++++++++++++++++++++++++++
community-staging-i686/rust.install | 13 ++++++++
community-staging-x86_64/PKGBUILD | 49 ++++++++++++++++++++++++++++++++
community-staging-x86_64/rust.install | 13 ++++++++
4 files changed, 124 insertions(+)
Copied: rust/repos/community-staging-i686/PKGBUILD (from rev 148767, rust/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-12-06 02:33:28 UTC (rev 148768)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+
+pkgname=rust
+pkgver=1.4.0
+epoch=1
+pkgrel=2
+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=('1c0dfdce5c85d8098fcebb9adf1493847ab40c1dfaa8cc997af09b2ef0aa8211'
+ 'SKIP')
+install="$pkgname.install"
+options=('staticlibs' '!strip')
+validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') # Rust Language (Tag and Release Signing Key) <rust-key at 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:
Copied: rust/repos/community-staging-i686/rust.install (from rev 148767, rust/trunk/rust.install)
===================================================================
--- community-staging-i686/rust.install (rev 0)
+++ community-staging-i686/rust.install 2015-12-06 02:33:28 UTC (rev 148768)
@@ -0,0 +1,13 @@
+post_install() {
+ if type -P update-mime-database &> /dev/null; then
+ update-mime-database usr/share/mime >/dev/null
+ fi
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
Copied: rust/repos/community-staging-x86_64/PKGBUILD (from rev 148767, rust/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-12-06 02:33:28 UTC (rev 148768)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+
+pkgname=rust
+pkgver=1.4.0
+epoch=1
+pkgrel=2
+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=('1c0dfdce5c85d8098fcebb9adf1493847ab40c1dfaa8cc997af09b2ef0aa8211'
+ 'SKIP')
+install="$pkgname.install"
+options=('staticlibs' '!strip')
+validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') # Rust Language (Tag and Release Signing Key) <rust-key at 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:
Copied: rust/repos/community-staging-x86_64/rust.install (from rev 148767, rust/trunk/rust.install)
===================================================================
--- community-staging-x86_64/rust.install (rev 0)
+++ community-staging-x86_64/rust.install 2015-12-06 02:33:28 UTC (rev 148768)
@@ -0,0 +1,13 @@
+post_install() {
+ if type -P update-mime-database &> /dev/null; then
+ update-mime-database usr/share/mime >/dev/null
+ fi
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
More information about the arch-commits
mailing list