updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / homesick / PKGBUILD
blob59a97d9746fd73b32b73be1038b3510102b0b210
1 # Contributor: Leonidas <marek@xivilization.net>
2 pkgname=homesick
3 pkgver=0.6.1
4 pkgrel=2
5 pkgdesc="A man's home is his castle. Never leave your dotfiles behind."
6 arch=(any)
7 url="http://github.com/technicalpickles/homesick"
8 license=('MIT')
9 depends=(ruby ruby-thor)
10 # well, rubygems is part of the ruby package nowadays, but *shrug*
11 makedepends=(rubygems)
12 source=(http://rubygems.org/downloads/homesick-$pkgver.gem)
13 noextract=(homesick-$pkgver.gem)
14 md5sums=('27c8c96fb6b5c41f3edbec083f85bea5')
16 build() {
17   cd $srcdir
18   # _gemdir is defined inside build() because if ruby[gems] is not installed on the system
19   #  makepkg will barf when sourcing the PKGBUILD
20   local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
21   # we want to write the 'homesick' binary to the $PATH
22   local _bindir="$pkgdir/usr/bin"
24   gem install \
25     --ignore-dependencies \
26     --install-dir "$pkgdir$_gemdir" \
27     --bindir "$_bindir" \
28     homesick-$pkgver.gem