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 <i...@kernel.org>
+# Contributor: Brett Hoerner <br...@bretthoerner.com>
+# Contributor: Jochen Schalanda <jochen+...@schalanda.name>
+# Contributor: Mathieu Clabaut <mathieu.clab...@gmail.com>
+# Contributor: helios <a...@wiresphere.de>
+# Contributor: George Ornbo <gor...@gmail.com>
+# Contributor: Niklas Heer <niklas.h...@me.com>
+# Contributor: Steven Nance <ste...@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
+}

Reply via email to