Date: Saturday, August 27, 2022 @ 08:00:19 Author: jsteel Revision: 1284560
archrelease: copy trunk to community-testing-x86_64 Added: vagrant/repos/community-testing-x86_64/PKGBUILD (from rev 1284559, vagrant/trunk/PKGBUILD) Deleted: vagrant/repos/community-testing-x86_64/PKGBUILD ----------+ PKGBUILD | 156 ++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 82 insertions(+), 74 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-08-27 08:00:01 UTC (rev 1284559) +++ PKGBUILD 2022-08-27 08:00:19 UTC (rev 1284560) @@ -1,74 +0,0 @@ -# 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 -} Copied: vagrant/repos/community-testing-x86_64/PKGBUILD (from rev 1284559, vagrant/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-08-27 08:00:19 UTC (rev 1284560) @@ -0,0 +1,82 @@ +# 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=7 +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') + +prepare() { + cd vagrant-installers + local _gemdir="$(gem env gemdir)" + + # Allow Vagrant to see the system gems as these have been de-vendored from the ruby package + sed -i "s_\"gems\", vagrantVersion)_\"gems\", vagrantVersion, \":$_gemdir\")_g" substrate/launcher/main.go +} + +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 -Dm644 "$INSTALLERS_DIR"/common/gemrc "$EMBEDDED_DIR"/etc/gemrc + + echo "{ \"vagrant_version\": \"$pkgver\" }" > "$EMBEDDED_DIR"/manifest.json + + gem install $pkgname-$pkgver.gem \ + --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 +}