Created
December 9, 2015 00:00
-
-
Save anonymous/c2fe376cd376d98758f2 to your computer and use it in GitHub Desktop.
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: Vlad M. <vlad@archlinux.net> | |
pkgname=rusti-git | |
_pkgname=rusti | |
pkgver=r141.54a017a | |
pkgrel=1 | |
pkgdesc="REPL for Rust" | |
url="https://github.com/murarth/rusti" | |
depends=('readline' 'rust') | |
makedepends=('git' 'cargo') | |
optdepends=('rust-racer: for code completion') | |
provides=('rusti') | |
conflicts=('rusti') | |
arch=('i686' 'x86_64') | |
license=('Apache' 'MIT') | |
source=("git+https://github.com/murarth/$_pkgname.git") | |
sha256sums=('SKIP') | |
pkgver() { | |
cd "$_pkgname" | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
build() { | |
cd "$_pkgname" | |
cargo build --release | |
} | |
package() { | |
install -D -m755 "$srcdir/$_pkgname/target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname" | |
mkdir -p "$pkgdir/usr/share/licenses/$pkgname/" | |
install -D -m644 "$srcdir/$_pkgname/"{LICENSE-APACHE,LICENSE-MIT} "$pkgdir/usr/share/licenses/$pkgname/" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment