diff options
author | Michael Sproul | 2015-07-02 12:36:58 +1000 |
---|---|---|
committer | Michael Sproul | 2015-07-02 12:36:58 +1000 |
commit | 8d1a4c17fd5abe0a020b267b0b0f87121e140411 (patch) | |
tree | 7b1f22392f3b585e046a030e3c041ffbb4f98910 /PKGBUILD | |
download | aur-8d1a4c17fd5abe0a020b267b0b0f87121e140411.tar.gz |
Initial commit.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..76448ec3f164 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# MAINTAINER WANTED +# Source Available: https://github.com/michaelsproul/rust-nightly-archlinux +pkgname=rust-nightly-bin +pkgver=1.3.0_2015.07.02 +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/' +provides=('rust' 'cargo') +conflicts=('rust' 'rust-git' 'rust-nightly' 'cargo-nightly-bin') +depends=('shared-mime-info') +license=('MIT' 'Apache') +source=("https://static.rust-lang.org/dist/rust-nightly-${CARCH}-unknown-linux-gnu.tar.gz" + 'rust-nightly.conf') +sha256sums=('SKIP' 'SKIP') +install=rust.install +options=(staticlibs !strip) + +package() { + local INSTALL_DIR=/usr/local + local MAN_DIR=/usr/local/man + + # Rust, Cargo and Documentation. + cd rust-nightly-${CARCH}-unknown-linux-gnu + ./install.sh --prefix=${pkgdir}${INSTALL_DIR} --mandir=${pkgdir}${MAN_DIR} + + # FIXME: Establish .rs MIME type association. + # mkdir -p "${pkgdir}/usr/share/mime/packages" + # install -m 644 "${srcdir}/rust.xml" "${pkgdir}/usr/share/mime/packages/rust.xml" + + # Dynamic linker configuration (no LD_LIBRARY_PATH required). + mkdir -p "${pkgdir}/etc/ld.so.conf.d" + install -m 644 "${srcdir}/rust-nightly.conf" "${pkgdir}/etc/ld.so.conf.d/rust-nightly.conf" + + # Remove manifest file referencing $pkgdir. + rm -f "${pkgdir}/usr/local/lib/rustlib/manifest-rustc" +} |