[arch-commits] Commit in (6 files)

Alexander Rødseth arodseth at archlinux.org
Sat Oct 24 10:45:01 UTC 2015


    Date: Saturday, October 24, 2015 @ 12:45:01
  Author: arodseth
Revision: 144889

Moving cargo from AUR to [community]

Added:
  cargo/
  cargo/repos/
  cargo/repos/community-i686/
  cargo/repos/community-x86_64/
  cargo/trunk/
  cargo/trunk/PKGBUILD

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

Added: cargo/trunk/PKGBUILD
===================================================================
--- cargo/trunk/PKGBUILD	                        (rev 0)
+++ cargo/trunk/PKGBUILD	2015-10-24 10:45:01 UTC (rev 144889)
@@ -0,0 +1,53 @@
+# $Id: PKGBUILD 68685 2012-03-31 16:54:07Z arodseth $
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Christopher Reimer <mail+aur at c-reimer.de>
+
+pkgname=cargo
+pkgver=0.5.0
+pkgrel=1
+pkgdesc='Rust package manager'
+url='http://crates.io/'
+arch=('x86_64' 'i686')
+license=('custom')
+depends=('curl' 'rust')
+makedepends=('cmake' 'git' 'python')
+options=('!emptydirs')
+source=("git+https://github.com/rust-lang/cargo.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cd "$srcdir/$pkgname"
+
+  git submodule init
+  git submodule update
+}
+
+build() {
+  cd "$srcdir/$pkgname"
+
+  ./configure --prefix=/usr --enable-optimize
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname"
+
+  make DESTDIR="$pkgdir" install
+
+  #Contains reference to $srcdir and $pkgdir
+  find "$pkgdir" -name install.log -delete
+  find "$pkgdir" -name manifest-cargo -delete
+
+  #Conflict with rust package
+  find "$pkgdir" -name uninstall.sh -delete
+
+  install -d "$pkgdir/usr/share/bash-completion/completions"
+  mv "$pkgdir/usr/etc/bash_completion.d/cargo" \
+    "$pkgdir/usr/share/bash-completion/completions/cargo"
+
+  install -d "$pkgdir/usr/share/licenses/$pkgname"
+  mv "$pkgdir/usr/share/doc/cargo/LICENSE"* \
+    "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list