summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f971e906c0252a33e8fff07236569c2ab2c77a79 (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
33
34
35
36
# Contributor: Tomas Kopecny <iam+arch@tomask.info>

pkgname=php56-oci8
_extname=oci8
pkgver=2.0.12
pkgrel=1
pkgdesc="PHP extension for OCI8"
arch=('x86_64')
url="http://pecl.php.net/package/${_extname}"
license=('PHP')
depends=('php56' 'oracle-instantclient-sdk')
backup=("etc/php56/conf.d/${_extname}.ini")
source=("http://pecl.php.net/get/${_extname}-${pkgver}.tgz")
md5sums=('1f189ebda749b403bc53c0bd0ddaf2c1')

build() {
  cd "${_extname}-${pkgver}"

  phpize56
  ./configure --config-cache \
    --sysconfdir=/etc/php56 \
    --with-php-config=/usr/bin/php-config56 \
    --localstatedir=/var \
    --prefix=/usr \
    --with-oci8=instantclient,/usr/lib
  make
}

package() {
  cd "${_extname}-${pkgver}"

  make INSTALL_ROOT="${pkgdir}" install
  echo "extension=${_extname}.so" > "${_extname}.ini"
  install -D -m644 "${_extname}.ini" "${pkgdir}/etc/php56/conf.d/${_extname}.ini"
}