blob: 23c48fbef5771ca304000f1549de4f5f848eb2ec (
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
37
38
39
40
41
|
# Maintainer: Maxim Novikov <the.mlex@gmail.com>
# Contributor: Piotr Walesiuk <pwalesiuk@gmail.com>
pkgname=php-pdo-oci
pkgver=8.3.2
pkgrel=1
_extname=pdo_oci
pkgdesc="PDO driver for OCI8"
arch=('x86_64')
url="https://github.com/php/php-src/tree/master/ext/pdo_oci"
license=('PHP')
depends=(
'php>=8.3.0'
'php-oci8>=3.3.0'
)
conflicts=('php-pdo-oci-git')
backup=('etc/php/conf.d/${_extname}.ini')
source=(
"https://github.com/php/php-src/archive/php-${pkgver}.tar.gz"
"patch.diff"
)
md5sums=('c32e2d03f49081560c82f07c9cfce633' '74552b37da712404393cfca947c8e402')
build() {
patch "$srcdir/php-src-php-${pkgver}/ext/${_extname}/config.m4" < "${srcdir}/patch.diff"
cd "$srcdir/php-src-php-${pkgver}/ext/${_extname}"
phpize
./configure --prefix=/usr --with-pdo-oci=instantclient,/usr
make
}
package() {
cd "$srcdir/php-src-php-${pkgver}/ext/${_extname}"
make INSTALL_ROOT="${pkgdir}" install
echo "extension=${_extname}.so" > "${_extname}.ini"
install -D -m644 "${_extname}.ini" "${pkgdir}/etc/php/conf.d/${_extname}.ini"
}
|