Created
February 20, 2015 00:41
-
-
Save RyanMarcus/7a344d97cc8211cd6d19 to your computer and use it in GitHub Desktop.
A PKGBUILD for the changed Cargo distro format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Amr Hassan <[email protected]> | |
# Small change by Ryan Marcus <[email protected]> | |
pkgname=cargo-bin | |
pkgrel=1 | |
pkgver=20150220 | |
pkgdesc="The Rust package manager" | |
url="http://crates.io/" | |
arch=('x86_64' 'i686') | |
license=('MIT') | |
depends=('rust') | |
optdepends=() | |
makedepends=() | |
conflicts=('cargo-git') | |
replaces=('cargo-git') | |
backup=() | |
install='' | |
source=("https://static.rust-lang.org/cargo-dist/cargo-nightly-${CARCH}-unknown-linux-gnu.tar.gz") | |
md5sums=('SKIP') | |
pkgver() { | |
date +%G%m%d | |
} | |
package() { | |
cd "${srcdir}/cargo-nightly-${CARCH}-unknown-linux-gnu/" | |
install -Dm 0755 cargo/bin/cargo "${pkgdir}/usr/bin/cargo" | |
install -Dm 0755 cargo/etc/bash_completion.d/cargo "$pkgdir/etc/bash_completion.d/cargo" | |
} | |
# vim:set ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment