62 lines
2.3 KiB
Bash
62 lines
2.3 KiB
Bash
# Template file for 'vagrant'
|
|
pkgname=vagrant
|
|
version=2.3.6
|
|
revision=1
|
|
archs="i686 x86_64*"
|
|
build_style=gemspec
|
|
depends="bsdtar curl openssh rsync"
|
|
short_desc="Tool for building and distributing development environments"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="MIT"
|
|
homepage="https://www.vagrantup.com/"
|
|
changelog="https://raw.githubusercontent.com/hashicorp/vagrant/main/CHANGELOG.md"
|
|
distfiles="https://github.com/hashicorp/vagrant/archive/v${version}.tar.gz"
|
|
checksum=3f9780b32d979e7cf4565a56fa6dc40b3c9b1b73e4cae9931b1d4a706d0d4d9e
|
|
nocross=yes
|
|
|
|
post_extract() {
|
|
vsed -e 's|, "< 3\.1"||g' -i vagrant.gemspec
|
|
}
|
|
|
|
do_install() {
|
|
GEM_PATH=$DESTDIR/usr/lib/vagrant GEM_HOME="$GEM_PATH" \
|
|
gem install vagrant-$version.gem --no-document -- --disable-clean
|
|
|
|
vlicense LICENSE
|
|
|
|
vbin $FILESDIR/vagrant
|
|
|
|
vcompletion "contrib/bash/completion.sh" bash
|
|
|
|
vinstall contrib/vim/vagrantfile.vim 644 /usr/share/vim/vim90/ftplugin
|
|
|
|
find ${DESTDIR} -type f -name \*.a -delete
|
|
find ${DESTDIR} -type f -name \*.log -delete
|
|
find ${DESTDIR} -type f -name \*.c -delete
|
|
find ${DESTDIR} -type f -name \*.o -delete
|
|
find ${DESTDIR} -type f -name \*.S -delete
|
|
find ${DESTDIR} -type f -name \*.css -delete
|
|
find ${DESTDIR} -type f -name \*.html -delete
|
|
find ${DESTDIR} -type f -name \*.rhtml -delete
|
|
find ${DESTDIR} -type f -name \*.md -delete
|
|
find ${DESTDIR} -type f -name \*.h -delete
|
|
find ${DESTDIR} -type f -name \*.mk -delete
|
|
find ${DESTDIR} -type f -name \*.am -delete
|
|
find ${DESTDIR} -type f -name \*.in -delete
|
|
find ${DESTDIR} -type f -name \*akefile -delete
|
|
find ${DESTDIR} -type f -name Gemfile -delete
|
|
find ${DESTDIR} -type f -name LICENSE -delete
|
|
find ${DESTDIR} -type f -name .\* -delete
|
|
find ${DESTDIR} -type f -name \*.rdoc -delete
|
|
find ${DESTDIR} -type d -name ext -print0|xargs -0 rm -rf --
|
|
find ${DESTDIR} -type d -name test -print0|xargs -0 rm -rf --
|
|
find ${DESTDIR} -type d -name examples -print0|xargs -0 rm -rf --
|
|
find ${DESTDIR} -type d -name doc -print0|xargs -0 rm -rf --
|
|
find ${DESTDIR} -type d -name ports -print0|xargs -0 rm -rf --
|
|
rm -r ${DESTDIR}/usr/lib/vagrant/cache
|
|
|
|
# XXX: work around bad permissions
|
|
chmod 644 ${DESTDIR}/usr/lib/vagrant/gems/google-protobuf-*/lib/google/protobuf.rb \
|
|
${DESTDIR}/usr/lib/vagrant/gems/google-protobuf-*/lib/google/protobuf/*.rb
|
|
}
|