2013-02-25 13:10:27 +01:00
|
|
|
# Description: SQLite3 module for PHP
|
2020-06-06 13:00:05 +02:00
|
|
|
# URL: https://www.php.net
|
2013-02-25 13:10:27 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
|
|
# Depends on: sqlite3
|
|
|
|
|
|
|
|
name=php-sqlite3
|
2020-05-15 16:40:05 +02:00
|
|
|
version=7.4.6
|
2013-02-25 13:10:27 +01:00
|
|
|
release=1
|
2020-06-06 13:00:05 +02:00
|
|
|
source=(https://php.net/distributions/php-$version.tar.xz)
|
2013-02-25 13:10:27 +01:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd php-$version
|
|
|
|
|
|
|
|
./configure --disable-all \
|
|
|
|
--enable-pdo=shared \
|
|
|
|
--with-sqlite3=shared,/usr \
|
|
|
|
--with-pdo-sqlite=shared,/usr
|
|
|
|
|
|
|
|
make build-modules
|
|
|
|
|
|
|
|
install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions}
|
|
|
|
install -m 755 modules/*sqlite*.so $PKG/usr/lib/php/extensions
|
|
|
|
|
|
|
|
printf 'extension=%s\n' {pdo_sqlite,sqlite3}.so > $PKG/etc/php/conf.d/sqlite3.ini
|
|
|
|
}
|