talimat 764 B

123456789101112131415161718192021222324252627282930
  1. # Tanım: PHP için MySQL modulü
  2. # URL: http://www.php.net
  3. # Paketçi: milisarge
  4. # Gerekler: mariadb php
  5. # Grup: sistem
  6. isim=php-mysql
  7. surum=5.6.31
  8. devir=1
  9. kaynak=(http://php.net/distributions/php-$surum.tar.xz)
  10. derle() {
  11. cd php-$surum
  12. ./configure --disable-all \
  13. --enable-pdo=shared \
  14. --enable-mysqlnd=shared \
  15. --with-mysql=shared,mysqlnd \
  16. --with-mysqli=shared,mysqlnd \
  17. --with-pdo-mysql=shared,mysqlnd
  18. make build-modules
  19. install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions}
  20. install -m 755 modules/*mysql*.so $PKG/usr/lib/php/extensions
  21. printf 'extension=%s\n' {mysqlnd,mysql,mysqli,pdo_mysql}.so \
  22. > $PKG/etc/php/conf.d/mysql.ini
  23. }