diff options
author | angelsl | 2015-11-24 20:20:06 +0800 |
---|---|---|
committer | angelsl | 2015-11-24 20:20:06 +0800 |
commit | b733618180dac9d019649d8647eca16fb814c0f4 (patch) | |
tree | d0bd214348bc3427b9ea61caf2f516029a740f9a | |
download | aur-b733618180dac9d019649d8647eca16fb814c0f4.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 32 | ||||
-rw-r--r-- | PKGBUILD | 53 |
2 files changed, 85 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4840ed7d9041 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,32 @@ +pkgbase = rust-always-nightly-bin + pkgdesc = Fast, concurrent, safe. The Rust programming language and its package manager, Cargo. + pkgver = 1.6.0_2015.11.23 + pkgrel = 1 + url = http://www.rust-lang.org/ + arch = i686 + arch = x86_64 + license = MIT + license = Apache + license = custom + depends = gcc-libs + depends = zlib + depends = sh + provides = rust + provides = rust-nightly + provides = cargo + provides = cargo-nightly + conflicts = rust + conflicts = rust-git + conflicts = rust-nightly + conflicts = rust-nightly-bin + conflicts = cargo + conflicts = cargo-git + conflicts = cargo-nightly + conflicts = cargo-nightly-bin + options = staticlibs + options = !strip + source = http://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-gnu.tar.gz + source = http://static.rust-lang.org/dist/rust-nightly-i686-unknown-linux-gnu.tar.gz + +pkgname = rust-always-nightly-bin + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d9638f4434b9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,53 @@ +# Contributor: micsproul at large search corporation's mail service. +# Contributor: Mohammad Alsaleh <msal@tormail.org> +# Maintainer: Steven Allen <steven@stebalien.com> + +pkgname=rust-always-nightly-bin +pkgver=1.6.0_2015.11.23 +pkgrel=1 +arch=('i686' 'x86_64') +pkgdesc='Fast, concurrent, safe. The Rust programming language and its package manager, Cargo.' +url='http://www.rust-lang.org/' +license=('MIT' 'Apache' 'custom') +provides=('rust' 'rust-nightly' 'cargo' 'cargo-nightly') +conflicts=('rust' 'rust-git' 'rust-nightly' 'rust-nightly-bin' 'cargo' 'cargo-git' 'cargo-nightly' 'cargo-nightly-bin') +depends=('gcc-libs' 'zlib' 'sh') +_src="http://static.rust-lang.org/dist/rust-nightly-${CARCH}-unknown-linux-gnu.tar.gz" +source=($_src) +sha256sums=("$(curl -sL $_src.sha256 | cut -d\ -f1)") +validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') +options=(staticlibs !strip) + +pkgver() { + cd ${srcdir}/rust-nightly-${CARCH}-unknown-linux-gnu + ver="$(expr "$(cat version)" : '\(.*\)-nightly')" + date="$(expr "$(cat version)" : '.* \(.*\))')" + echo "${ver}_${date//\-/.}" +} + +package() { + if [[ -n $VERIFY_PGP ]]; then + msg "Verifying PGP signatures." + curl -sLO $_src.asc + gpg --verify $_src.asc + fi + + # Rust, Cargo and Documentation. + cd rust-nightly-${CARCH}-unknown-linux-gnu + ./install.sh \ + --disable-ldconfig \ + --destdir="${pkgdir}" \ + --prefix=/usr/ + + install -dm755 "${pkgdir}/usr/share/bash-completion/" + mv "${pkgdir}/usr/etc/bash_completion.d/" "${pkgdir}/usr/share/bash-completion/completions/" + rmdir "${pkgdir}/usr/etc/" + + install -dm755 "${pkgdir}/usr/share/licenses/rust-always-nightly-bin/"{rust,cargo} + + mv "${pkgdir}"/usr/share/doc/cargo/LICENSE-* "${pkgdir}/usr/share/licenses/rust-always-nightly-bin/cargo/" + mv "${pkgdir}"/usr/share/doc/rust/{LICENSE-*,COPYRIGHT} "${pkgdir}/usr/share/licenses/rust-always-nightly-bin/rust/" + + # Remove cruft. + rm "${pkgdir}/usr/lib/rustlib/"{manifest-*,install.log,uninstall.sh,components,rust-installer-version} +} |