1 # Maintainer: Patrick Brisbin <pbrisbin@gmail.com>
5 pkgdesc="Displays packages that have not been used in a while."
7 url="https://github.com/pbrisbin/pacruft"
11 makedepends=('git' 'rubygems')
15 _gitroot="git://github.com/pbrisbin/$_gitname.git"
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
25 git clone $_gitroot $_gitname
28 msg "GIT checkout done or server timeout"
31 cd "$srcdir/$_gitname"
32 gem build "$_gitname.gemspec"
36 cd "$srcdir/$_gitname"
38 local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
39 gem install --ignore-dependencies -i "${pkgdir}${_gemdir}" *.gem