blob: 233fbedf951dad19ddafd56497f158045d58c9f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# $Id: PKGBUILD 108009 2014-03-20 20:53:49Z jsteel $
# Maintainer: Jonathan Steel <jsteel at aur.archlinux.org>
# Contributor: Ido Rosen <ido@kernel.org>
# Contributor: Brett Hoerner <brett@bretthoerner.com>
# Contributor: Jochen Schalanda <jochen+aur@schalanda.name>
# Contributor: Mathieu Clabaut <mathieu.clabaut@gmail.com>
# Contributor: helios <aur@wiresphere.de>
# Contributor: George Ornbo <gornbo@gmail.com>
# Contributor: Niklas Heer <niklas.heer@me.com>
# Contributor: Steven Nance <steven@devtrw.com>
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
}
|