summaryrefslogtreecommitdiff
path: root/community/php-geoip/PKGBUILD
blob: 411d5bbf400c5e881c8b5c07b868d29ac5673d25 (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
# $Id: PKGBUILD 36134 2010-12-27 13:40:37Z foutrelis $
# Maintainer: Evangelos Foutras <foutrelis@gmail.com>

pkgname=php-geoip
pkgver=1.0.7
pkgrel=2
pkgdesc="GeoIP module for PHP"
arch=('i686' 'x86_64')
url="http://pecl.php.net/package/geoip"
license=('PHP')
depends=('php' 'geoip')
backup=('etc/php/conf.d/geoip.ini')
source=(http://pecl.php.net/get/geoip-$pkgver.tgz)
md5sums=('ca5397a1dacb62afd426c2065fc1e106')

build() {
  cd "$srcdir/geoip-$pkgver"

  phpize
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/geoip-$pkgver"

  make INSTALL_ROOT="$pkgdir" install
  echo ';extension=geoip.so' >geoip.ini
  install -Dm644 geoip.ini "$pkgdir/etc/php/conf.d/geoip.ini"
}

# vim:set ts=2 sw=2 et: