Date: Wednesday, September 21, 2016 @ 18:32:09
  Author: svenstaro
Revision: 190131

Move rust-racer from AUR

Added:
  rust-racer/
  rust-racer/repos/
  rust-racer/trunk/
  rust-racer/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

Added: rust-racer/trunk/PKGBUILD
===================================================================
--- rust-racer/trunk/PKGBUILD                           (rev 0)
+++ rust-racer/trunk/PKGBUILD   2016-09-21 18:32:09 UTC (rev 190131)
@@ -0,0 +1,27 @@
+# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com>
+# Contributor: Vlad M. <v...@archlinux.net>
+# Contributor: issue <issue at archlinux dot info>
+
+pkgname=rust-racer
+_pkgname=racer
+pkgver=1.2.10
+pkgrel=1
+pkgdesc="Code completion for Rust"
+url="https://github.com/phildawes/racer";
+optdepends=('rust-src')
+makedepends=('cargo')
+arch=('i686' 'x86_64')
+license=('MIT')
+source=("$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/$_pkgname/$pkgver/download";)
+sha256sums=('73887d937ae9a27aa5dcc0b071fe90708c3dcf3d67b57193b037238dfb9c0592')
+
+build() {
+  cd "$_pkgname-$pkgver"
+  cargo build --release
+}
+
+package() {
+  cd "$_pkgname-$pkgver"
+  install -Dm755 target/release/racer "$pkgdir/usr/bin/racer"
+  install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT"
+}

Reply via email to