blob: 31c8c63d49cd3a7b743121d61f51aafb2af1b70f (
plain)
1 # Description: MySQL module for PHP
2 # URL: https://www.php.net
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: mysql
5
6 name=php-mysql
7 version=7.4.12
8 release=1
9 source=(https://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-mysqli=shared,mysqlnd \
18 --with-pdo-mysql=shared,mysqlnd
19
20 make build-modules
21
22 install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions}
23 install -m 755 modules/*mysql*.so $PKG/usr/lib/php/extensions
24
25 printf 'extension=%s\n' {mysqlnd,mysqli,pdo_mysql}.so \
26 > $PKG/etc/php/conf.d/mysql.ini
27 }
|