updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / php-pdo_dblib / PKGBUILD
blob8b30fbfb8e98b7b552ee6a39f2f0a9cd1b47d206
1 # Maintainer; Eugene Lamskoy <e.lamskoy@gmail.com>
2 _pecl=PDO_DBLIB
3 _ext=pdo_dblib
4 pkgname="php-${_ext}"
5 pkgver=1.0
6 pkgrel=1
7 pkgdesc="pdo_dblib extension for PHP"
8 arch=('i686' 'x86_64')
9 url="http://pecl.php.net/package/${_pecl}"
10 license=('PHP')
11 depends=('php' 'freetds')
12 source=(
13     http://pecl.php.net/get/${_pecl}-${pkgver}.tgz
14     'freetds.patch'
16 install="php-${_ext}.install"
18 md5sums=('017135f92597e02dcacf1c37319f3b2a'
19          '77d3243e4a137bd199ac403caf12a002')
21 build() {
22   cd "$srcdir/${_pecl}-${pkgver}"
23   phpize
24   patch -i ${srcdir}/freetds.patch -p0 || exit 1
25   ./configure --prefix=/usr
26   make
29 package() {
30   cd "$srcdir/${_pecl}-$pkgver"
32   make INSTALL_ROOT="$pkgdir" install
33   echo ";extension=${_ext}.so" > "${_ext}.ini"
34   install -Dm644 "${_ext}.ini" "$pkgdir/etc/php/conf.d/${_ext}.ini"