Date: Friday, January 30, 2015 @ 02:50:23 Author: anatolik Revision: 126768
archrelease: copy trunk to community-i686, community-x86_64 Added: rust/repos/community-i686/ rust/repos/community-i686/PKGBUILD (from rev 126767, rust/trunk/PKGBUILD) rust/repos/community-i686/rust.install (from rev 126767, rust/trunk/rust.install) rust/repos/community-x86_64/ rust/repos/community-x86_64/PKGBUILD (from rev 126767, rust/trunk/PKGBUILD) rust/repos/community-x86_64/rust.install (from rev 126767, rust/trunk/rust.install) -------------------------------+ community-i686/PKGBUILD | 64 ++++++++++++++++++++++++++++++++++++++++ community-i686/rust.install | 13 ++++++++ community-x86_64/PKGBUILD | 64 ++++++++++++++++++++++++++++++++++++++++ community-x86_64/rust.install | 13 ++++++++ 4 files changed, 154 insertions(+) Copied: rust/repos/community-i686/PKGBUILD (from rev 126767, rust/trunk/PKGBUILD) =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2015-01-30 01:50:23 UTC (rev 126768) @@ -0,0 +1,64 @@ +# $Id$ +# Maintainer: Daniel Micay <danielmi...@gmail.com> + +pkgname=rust +_pkgver=1.0.0-alpha +pkgver=1.0.0.alpha +pkgrel=3 +arch=(i686 x86_64) +pkgdesc='A safe, concurrent, practical language' +url='http://www.rust-lang.org/' +license=(MIT Apache) +depends=(gcc) +makedepends=(libffi perl python2 curl) +checkdepends=(git valgrind) +source=(http://static.rust-lang.org/dist/rustc-$_pkgver-src.tar.gz{,.asc}) +sha256sums=('3a2285726e839fc57ad49ed8907a50bab2d29d8f898e2d5a02f620a0477fc25c' + 'SKIP') +install=rust.install +options=(staticlibs) +validpgpkeys=(108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE) # Rust Language (Tag and Release Signing Key) <rust-...@rust-lang.org> + +build() { + cd rustc-$_pkgver + + ./configure --prefix=/usr --disable-debug --disable-docs --disable-verify-install + + # avoid python makedepend (force fallback to python2) + sed -i 's/^PYTHONVERSION.*/PYTHONVERSION := 3/' src/llvm/Makefile.rules + + make +} + +check() { + cd rustc-$_pkgver + #make check +} + +package() { + cd rustc-$_pkgver + 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/lib" + rm rustlib/{components,manifest-rustc,rust-installer-version} + ln -sf rustlib/$CARCH-unknown-linux-gnu/lib/*.so . +} Copied: rust/repos/community-i686/rust.install (from rev 126767, rust/trunk/rust.install) =================================================================== --- community-i686/rust.install (rev 0) +++ community-i686/rust.install 2015-01-30 01:50:23 UTC (rev 126768) @@ -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-x86_64/PKGBUILD (from rev 126767, rust/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2015-01-30 01:50:23 UTC (rev 126768) @@ -0,0 +1,64 @@ +# $Id$ +# Maintainer: Daniel Micay <danielmi...@gmail.com> + +pkgname=rust +_pkgver=1.0.0-alpha +pkgver=1.0.0.alpha +pkgrel=3 +arch=(i686 x86_64) +pkgdesc='A safe, concurrent, practical language' +url='http://www.rust-lang.org/' +license=(MIT Apache) +depends=(gcc) +makedepends=(libffi perl python2 curl) +checkdepends=(git valgrind) +source=(http://static.rust-lang.org/dist/rustc-$_pkgver-src.tar.gz{,.asc}) +sha256sums=('3a2285726e839fc57ad49ed8907a50bab2d29d8f898e2d5a02f620a0477fc25c' + 'SKIP') +install=rust.install +options=(staticlibs) +validpgpkeys=(108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE) # Rust Language (Tag and Release Signing Key) <rust-...@rust-lang.org> + +build() { + cd rustc-$_pkgver + + ./configure --prefix=/usr --disable-debug --disable-docs --disable-verify-install + + # avoid python makedepend (force fallback to python2) + sed -i 's/^PYTHONVERSION.*/PYTHONVERSION := 3/' src/llvm/Makefile.rules + + make +} + +check() { + cd rustc-$_pkgver + #make check +} + +package() { + cd rustc-$_pkgver + 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/lib" + rm rustlib/{components,manifest-rustc,rust-installer-version} + ln -sf rustlib/$CARCH-unknown-linux-gnu/lib/*.so . +} Copied: rust/repos/community-x86_64/rust.install (from rev 126767, rust/trunk/rust.install) =================================================================== --- community-x86_64/rust.install (rev 0) +++ community-x86_64/rust.install 2015-01-30 01:50:23 UTC (rev 126768) @@ -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 +}