2024-02-24 19:18:37 +01:00
|
|
|
# Description: postgresql module for PHP
|
|
|
|
# URL: https://www.php.net
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: postgresql
|
|
|
|
|
|
|
|
name=php-pgsql
|
2024-04-16 21:21:15 +02:00
|
|
|
version=8.3.6
|
2024-02-24 19:18:37 +01:00
|
|
|
release=1
|
|
|
|
source=(https://www.php.net/distributions/php-$version.tar.xz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd php-$version
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--disable-all \
|
|
|
|
--enable-pdo \
|
|
|
|
--with-pdo-pgsql=shared \
|
|
|
|
--with-pgsql=shared
|
|
|
|
make build-modules
|
|
|
|
|
|
|
|
install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions}
|
|
|
|
install -m 755 modules/pgsql.so $PKG/usr/lib/php/extensions
|
|
|
|
install -m 755 modules/pdo_pgsql.so $PKG/usr/lib/php/extensions
|
|
|
|
echo "extension=pgsql.so" > $PKG/etc/php/conf.d/pgsql.ini
|
|
|
|
echo "extension=pdo_pgsql.so" > $PKG/etc/php/conf.d/pdo_pgsql.ini
|
|
|
|
}
|