updated on Thu Jan 19 04:14:35 UTC 2012
[aur-mirror.git] / ruby-geoip / PKGBUILD
blob43f690401c7f35b786daa9e29c62dd7b611dc204
1 # Contributor: gem2arch 0.1
2 pkgname=ruby-geoip
3 pkgver=0.8.6
4 _realname="geoip"
5 pkgrel=1
6 pkgdesc="GeoIP searches a GeoIP database for a given host or IP address, and returns information about the country where the IP address is allocated, and the city, ISP and other information, if you have that database version."
7 arch=(any)
8 url="http://github.com/cjheath/geoip"
9 license=("GPL")
10 depends=('ruby' 'ruby-hoe>=2.3.3')
11 source=(http://gems.rubyforge.org/gems/geoip-$pkgver.gem)
12 noextract=(geoip-$pkgver.gem)
14 build() {
15   cd $srcdir
16   local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
17   gem install --ignore-dependencies -i "$pkgdir$_gemdir" ${_realname}-$pkgver.gem
19 md5sums=('8cb763c60b0e65cbbdee138b9fd34298')