blob: 7710dc0e1a904de71cce7e73234e1906549bc125 (
plain)
1 # Description: MySQL module for PHP
2 # URL: http://www.php.net
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: mysql
5
6 name=php-mysql
7 version=5.6.30
8 release=1
9 source=(http://php.net/distributions/php-$version.tar.xz)
10
11 build () {
12 cd php-$version
13
14 ./configure --disable-all \
15 --enable-pdo=shared \
16 --enable-mysqlnd=shared \
17 --with-mysql=shared,mysqlnd \
18 --with-mysqli=shared,mysqlnd \
19 --with-pdo-mysql=shared,mysqlnd
20
21 make build-modules
22
23 install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions}
24 install -m 755 modules/*mysql*.so $PKG/usr/lib/php/extensions
25
26 printf 'extension=%s\n' {mysqlnd,mysql,mysqli,pdo_mysql}.so \
27 > $PKG/etc/php/conf.d/mysql.ini
28 }
|