27 lines
725 B
Plaintext
27 lines
725 B
Plaintext
# Description: postgresql module for PHP
|
|
# URL: https://www.php.net
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: postgresql
|
|
|
|
name=php-pgsql
|
|
version=8.3.10
|
|
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
|
|
}
|