# Contributor: Spencer Rinehart # Contributor: Marcel Pfeiffer pkgname=php-oci8 _extname=oci8 pkgver=3.3.0 pkgrel=1 pkgdesc="PHP extension for OCI8" arch=('x86_64') url="https://pecl.php.net/package/${_extname}" license=('PHP') depends=('php>=8.2.0' 'oracle-instantclient-sdk') backup=("etc/php/conf.d/${_extname}.ini") source=("https://pecl.php.net/get/${_extname}-${pkgver}.tgz") md5sums=('bbbbb26f1791d1f27ffc05289abee2f3') build() { cd "${_extname}-${pkgver}" phpize ./configure --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/php/conf.d/${_extname}.ini" }