61 lines
2.2 KiB
Bash
61 lines
2.2 KiB
Bash
# Template file for 'vagrant'
|
|
pkgname=vagrant
|
|
version=1.9.4
|
|
revision=1
|
|
hostmakedepends="ruby"
|
|
makedepends="ruby-devel zlib-devel"
|
|
depends="openssh curl bsdtar"
|
|
short_desc="Tool for building and distributing development environments"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="MIT"
|
|
homepage="https://www.vagrantup.com/"
|
|
distfiles="https://github.com/mitchellh/$pkgname/archive/v$version.tar.gz"
|
|
checksum=23358ad5d1a37d3d856709da55d8696c6eef30fcf88abd27ffe4b8441cfada7f
|
|
nocross=yes
|
|
patch_args="-p1"
|
|
|
|
only_for_archs="i686 x86_64"
|
|
|
|
pre_build() {
|
|
sed -i 's|\,\ "<\ 2\.4"||g' $pkgname.gemspec
|
|
}
|
|
|
|
do_build() {
|
|
gem build $pkgname.gemspec
|
|
}
|
|
|
|
do_install() {
|
|
GEM_PATH=$DESTDIR/usr/lib/$pkgname GEM_HOME="$GEM_PATH" gem install $pkgname-$version.gem --no-ri --no-rdoc -- --disable-clean
|
|
|
|
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 -r --
|
|
find ${DESTDIR} -type d -name test -print0|xargs -0 rm -r --
|
|
find ${DESTDIR} -type d -name examples -print0|xargs -0 rm -r --
|
|
find ${DESTDIR} -type d -name doc -print0|xargs -0 rm -r --
|
|
find ${DESTDIR} -type d -name ports -print0|xargs -0 rm -r --
|
|
rm -r ${DESTDIR}/usr/lib/$pkgname/cache
|
|
|
|
vmkdir usr/bin
|
|
vmkdir usr/share/bash-completion/completions
|
|
vbin $FILESDIR/$pkgname
|
|
ln -sf /usr/lib/$pkgname/gems/$pkgname-$version/contrib/bash/completion.sh \
|
|
$DESTDIR/usr/share/bash-completion/completions/$pkgname
|
|
vlicense LICENSE
|
|
}
|