# $Id: PKGBUILD 108009 2014-03-20 20:53:49Z jsteel $ # Maintainer: Jonathan Steel # Contributor: Ido Rosen # Contributor: Brett Hoerner # Contributor: Jochen Schalanda # Contributor: Mathieu Clabaut # Contributor: helios # Contributor: George Ornbo # Contributor: Niklas Heer # Contributor: Steven Nance pkgname=vagrant pkgver=1.5.1 pkgrel=5 pkgdesc="Build and distribute virtualized development environments" arch=('i686' 'x86_64') url="http://vagrantup.com" license=('MIT') options=('!emptydirs') makedepends=('git') depends=('ruby' 'curl' 'lzo2' 'libidn' 'rtmpdump') source=(git://github.com/mitchellh/$pkgname.git git://github.com/mitchellh/$pkgname-installers.git plugins.patch http://pkgbuild.com/~jsteel/aur/$pkgname/substrate_archlinux_$CARCH.zip) md5sums=('SKIP' 'SKIP' 'c73455203b22aaf89e3a7779ebbe81ed') [[ $CARCH == i686 ]] && md5sums[3]='c04042b24de56d18a041bc005e5ecaa4' [[ $CARCH == x86_64 ]] && md5sums[3]='53d8a137e0b50fee8509a7d1c15fd33b' prepare() { # Remove proprietary plugins patch -Np1 -i "$srcdir"/plugins.patch } build() { cd "$srcdir"/$pkgname REV=$( git log --grep ^v$pkgver$ --pretty=format:"%H" | head -n 1 ) "$srcdir"/$pkgname-installers/package/support/install_$pkgname.sh \ "$srcdir"/substrate/ $REV "$srcdir"/substrate/${pkgname}_version } package() { install -d "$pkgdir"/{opt/,usr/bin/,usr/share/bash-completion/completions/} cp -r "$srcdir"/substrate/ "$pkgdir"/opt/$pkgname/ ln -s /opt/$pkgname/bin/$pkgname "$pkgdir"/usr/bin/$pkgname ln -s /opt/$pkgname/embedded/gems/gems/$pkgname-$pkgver/contrib/bash/completion.sh \ "$pkgdir"/usr/share/bash-completion/completions/$pkgname install -Dm644 "$srcdir"/$pkgname/LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }