[arch-commits] Commit in cargo/repos (4 files)
Johannes Löthberg
demize at archlinux.org
Fri Mar 3 14:49:39 UTC 2017
Date: Friday, March 3, 2017 @ 14:49:38
Author: demize
Revision: 214658
archrelease: copy trunk to community-testing-x86_64, community-testing-i686
Added:
cargo/repos/community-testing-i686/
cargo/repos/community-testing-i686/PKGBUILD
(from rev 214657, cargo/trunk/PKGBUILD)
cargo/repos/community-testing-x86_64/
cargo/repos/community-testing-x86_64/PKGBUILD
(from rev 214657, cargo/trunk/PKGBUILD)
-----------------------------------+
community-testing-i686/PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++
community-testing-x86_64/PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++
2 files changed, 112 insertions(+)
Copied: cargo/repos/community-testing-i686/PKGBUILD (from rev 214657, cargo/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2017-03-03 14:49:38 UTC (rev 214658)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Christopher Reimer <mail+aur at c-reimer.de>
+
+pkgname=cargo
+pkgver=0.16.0
+pkgrel=1
+pkgdesc='Rust package manager'
+url='http://crates.io/'
+arch=('x86_64' 'i686')
+license=('APACHE' 'MIT' 'custom')
+depends=('curl' 'rust')
+makedepends=('git' 'setconf' 'python' 'cmake' 'cargo')
+optdepends=('gcc: for compiling C source code with gcc'
+ 'clang: for compiling C source code with clang')
+groups=('rust')
+options=('!emptydirs')
+source=("git+https://github.com/rust-lang/cargo.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cd cargo
+
+ git submodule update --init --recursive
+ sed 's^share/doc^share/licenses^g' -i Makefile.in
+
+ # Upstream forgot to bump the version number, FS#51939
+ setconf Makefile.in CFG_RELEASE_NUM="$pkgver"
+}
+
+build() {
+ cd cargo
+
+ ./configure --prefix=/usr --enable-optimize
+ make
+}
+
+package() {
+ cd cargo
+
+ make DESTDIR="$pkgdir" install
+
+ # Remove files that contains references to $srcdir or $pkgdir,
+ # or that conflicts with the rust package.
+ rm -f "$pkgdir/usr/lib/rustlib/"{install.log,manifest-cargo,uninstall.sh}
+
+ install -d "$pkgdir/usr/share/bash-completion/completions"
+ mv "$pkgdir/usr/etc/bash_completion.d/cargo" \
+ "$pkgdir/usr/share/bash-completion/completions/cargo"
+
+ for f in LICENSE-APACHE LICENSE-MIT LICENSE-THIRD-PARTY; do
+ install -Dm644 "$f" "$pkgdir/usr/share/licenses/$pkgname/$f"
+ done
+}
+
+# vim:set ts=2 sw=2 et:
Copied: cargo/repos/community-testing-x86_64/PKGBUILD (from rev 214657, cargo/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2017-03-03 14:49:38 UTC (rev 214658)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Christopher Reimer <mail+aur at c-reimer.de>
+
+pkgname=cargo
+pkgver=0.16.0
+pkgrel=1
+pkgdesc='Rust package manager'
+url='http://crates.io/'
+arch=('x86_64' 'i686')
+license=('APACHE' 'MIT' 'custom')
+depends=('curl' 'rust')
+makedepends=('git' 'setconf' 'python' 'cmake' 'cargo')
+optdepends=('gcc: for compiling C source code with gcc'
+ 'clang: for compiling C source code with clang')
+groups=('rust')
+options=('!emptydirs')
+source=("git+https://github.com/rust-lang/cargo.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cd cargo
+
+ git submodule update --init --recursive
+ sed 's^share/doc^share/licenses^g' -i Makefile.in
+
+ # Upstream forgot to bump the version number, FS#51939
+ setconf Makefile.in CFG_RELEASE_NUM="$pkgver"
+}
+
+build() {
+ cd cargo
+
+ ./configure --prefix=/usr --enable-optimize
+ make
+}
+
+package() {
+ cd cargo
+
+ make DESTDIR="$pkgdir" install
+
+ # Remove files that contains references to $srcdir or $pkgdir,
+ # or that conflicts with the rust package.
+ rm -f "$pkgdir/usr/lib/rustlib/"{install.log,manifest-cargo,uninstall.sh}
+
+ install -d "$pkgdir/usr/share/bash-completion/completions"
+ mv "$pkgdir/usr/etc/bash_completion.d/cargo" \
+ "$pkgdir/usr/share/bash-completion/completions/cargo"
+
+ for f in LICENSE-APACHE LICENSE-MIT LICENSE-THIRD-PARTY; do
+ install -Dm644 "$f" "$pkgdir/usr/share/licenses/$pkgname/$f"
+ done
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list