[arch-commits] Commit in vagrant/repos (2 files)
Jonathan Steel
jsteel at archlinux.org
Wed Jan 3 13:27:02 UTC 2018
Date: Wednesday, January 3, 2018 @ 13:27:01
Author: jsteel
Revision: 278216
archrelease: copy trunk to community-testing-x86_64
Added:
vagrant/repos/community-testing-x86_64/
vagrant/repos/community-testing-x86_64/PKGBUILD
(from rev 278215, vagrant/trunk/PKGBUILD)
----------+
PKGBUILD | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 74 insertions(+)
Copied: vagrant/repos/community-testing-x86_64/PKGBUILD (from rev 278215, vagrant/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2018-01-03 13:27:01 UTC (rev 278216)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Jonathan Steel <jsteel at archlinux.org>
+# Contributor: Ido Rosen <ido at kernel.org>
+# Contributor: Brett Hoerner <brett at bretthoerner.com>
+# Contributor: Jochen Schalanda <jochen+aur at schalanda.name>
+# Contributor: Mathieu Clabaut <mathieu.clabaut at gmail.com>
+# Contributor: helios <aur at wiresphere.de>
+# Contributor: George Ornbo <gornbo at gmail.com>
+# Contributor: Niklas Heer <niklas.heer at me.com>
+# Contributor: Steven Nance <steven at devtrw.com>
+
+pkgname=vagrant
+pkgver=2.0.1
+pkgrel=2
+pkgdesc="Build and distribute virtualized development environments"
+arch=('x86_64')
+url="https://vagrantup.com"
+license=('MIT')
+options=('!emptydirs')
+depends=('curl' 'libarchive' 'libssh2' 'libxml2' 'libxslt' 'rsync'
+ 'ruby2.3' 'xz')
+makedepends=('git' 'go-pie')
+conflicts=('vagrant-substrate')
+replaces=('vagrant-substrate')
+source=($pkgname-$pkgver.tar.gz::https://github.com/mitchellh/$pkgname/archive/v$pkgver.tar.gz
+ "git://github.com/mitchellh/vagrant-installers.git#commit=7b7fb86")
+md5sums=('c443ac9e1034d5748b81f01da548d587'
+ 'SKIP')
+
+prepare() {
+ cd vagrant-installers/substrate/modules/vagrant_substrate
+ sed -i 's_"/usr/bin/ruby"_"/usr/bin/ruby-2.3"_' files/launcher/main.go
+}
+
+build() {
+ cd $pkgname-$pkgver
+
+ INSTALLERS_DIR="$srcdir"/vagrant-installers/substrate/modules
+
+ gem-2.3 build $pkgname.gemspec
+
+ cd "$INSTALLERS_DIR"/vagrant_substrate/files/launcher
+ go get github.com/mitchellh/osext
+ go build -o vagrant
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ INSTALLERS_DIR="$srcdir"/vagrant-installers/substrate/modules
+ EMBEDDED_DIR="$pkgdir"/opt/vagrant/embedded
+
+ install -d "$pkgdir"/usr/{bin,share/bash-completion/completions}
+
+ install -Dm644 "$INSTALLERS_DIR"/vagrant_substrate/templates/gemrc.erb \
+ "$EMBEDDED_DIR"/etc/gemrc
+
+ cp -r "$INSTALLERS_DIR"/rubyencoder/files/rgloader "$EMBEDDED_DIR"
+
+ GEM_PATH="$EMBEDDED_DIR"/gems GEM_HOME="$GEM_PATH" \
+ GEMRC="$EMBEDDED_DIR"/etc/gemrc \
+ gem-2.3 install $pkgname-$pkgver.gem --no-ri --no-rdoc
+
+ install -Dm755 "$INSTALLERS_DIR"/vagrant_substrate/files/launcher/vagrant \
+ "$pkgdir"/opt/$pkgname/bin/$pkgname
+
+ ln -s /opt/$pkgname/bin/$pkgname "$pkgdir"/usr/bin/$pkgname
+
+ install -Dm644 contrib/bash/completion.sh \
+ "$pkgdir"/usr/share/bash-completion/completions/$pkgname
+
+ install -Dm644 LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list