summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd57e147b7b5da18932b246a4e0119acf6c05855 (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
# Maintainer: Boris Momčilović <boris.momcilovic@gmail.com>
pkgname=php-pecl-gender
pkgver=1.1.0
pkgrel=1
pkgdesc="Gender PHP extension is a port of the gender.c program originally written by Joerg Michael. The main purpose is to find out the gender of firstnames. The name dictionary contains >40000 firstnames from 54 countries."
arch=('i686' 'x86_64')
url="http://pecl.php.net/package/gender"
license=('BSD')
makedepends=('autoconf')
source=(http://pecl.php.net/get/gender-${pkgver}.tgz)
sha256sums=('12be9b7ac54bee8d99e0f705bc3ae743af3ee4cfaddb1fc56432024424672d4f')

build() {
  cd ${srcdir}/gender-${pkgver}
  phpize
  ./configure
  make
}

package() {
  cd ${srcdir}/gender-${pkgver}
  make INSTALL_ROOT=${pkgdir} install
  install -d ${pkgdir}/etc/php/conf.d
  echo ";extension=gender.so" > ${pkgdir}/etc/php/conf.d/gender.ini
}