[arch-commits] Commit in vagrant/repos (2 files)

Jonathan Steel jsteel at gemini.archlinux.org
Fri Aug 26 16:55:23 UTC 2022


    Date: Friday, August 26, 2022 @ 16:55:23
  Author: jsteel
Revision: 1283236

archrelease: copy trunk to community-testing-x86_64

Added:
  vagrant/repos/community-testing-x86_64/
  vagrant/repos/community-testing-x86_64/PKGBUILD
    (from rev 1283235, vagrant/trunk/PKGBUILD)

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

Copied: vagrant/repos/community-testing-x86_64/PKGBUILD (from rev 1283235, vagrant/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2022-08-26 16:55:23 UTC (rev 1283236)
@@ -0,0 +1,74 @@
+# 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.3.0
+pkgrel=6
+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'
+         'ruby' 'xz' 'perl')
+makedepends=('git' 'go')
+conflicts=('vagrant-substrate')
+replaces=('vagrant-substrate')
+source=($pkgname-$pkgver.tar.gz::https://github.com/mitchellh/$pkgname/archive/v$pkgver.tar.gz
+        "git+https://github.com/mitchellh/vagrant-installers.git#commit=5aa48dd")
+md5sums=('872b623fd3ba919185b4cc671ea7c20f'
+         'SKIP')
+
+build() {
+  cd $pkgname-$pkgver
+  gem build $pkgname.gemspec
+
+  export GO111MODULE=off # golang 1.16 uses modules by default and packages below fail to compile
+  cd "$srcdir"/vagrant-installers/substrate/launcher
+  go get github.com/mitchellh/osext
+
+  go build \
+    -trimpath \
+    -buildmode=pie \
+    -ldflags "-extldflags \"${LDFLAGS}\"" \
+    -o vagrant
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  INSTALLERS_DIR="$srcdir"/vagrant-installers/substrate
+  EMBEDDED_DIR="$pkgdir"/opt/vagrant/embedded
+
+  install -d "$pkgdir"/usr/{bin,share/bash-completion/completions,share/zsh/site-functions}
+  install -d "$EMBEDDED_DIR"/gems
+
+  echo "{ \"vagrant_version\": \"$pkgver\" }" > "$EMBEDDED_DIR"/manifest.json
+
+  gem install $pkgname-$pkgver.gem cgi delegate ipaddr io-wait \
+    --no-document --no-user-install --install-dir "$EMBEDDED_DIR"/gems/$pkgver
+
+  install -Dm755 "$INSTALLERS_DIR"/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 contrib/zsh/_vagrant \
+    "$pkgdir"/usr/share/zsh/site-functions/_vagrant
+
+  install -Dm644 contrib/vim/vagrantfile.vim \
+    "$pkgdir"/usr/share/vim/vimfiles/ftdetect/vagrantfile.vim
+
+  install -Dm644 LICENSE \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list