2015-11-04 17:30:58 +01:00
|
|
|
# Description: Gettext module for PHP
|
2021-06-05 17:02:30 +02:00
|
|
|
# URL: https://www.php.net
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2015-08-07 11:58:40 +09:00
|
|
|
|
|
|
|
name=php-gettext
|
2022-08-05 12:46:51 +02:00
|
|
|
version=8.1.9
|
2015-08-07 11:58:40 +09:00
|
|
|
release=1
|
2020-06-06 13:00:05 +02:00
|
|
|
source=(https://www.php.net/distributions/php-$version.tar.xz)
|
2015-08-07 11:58:40 +09:00
|
|
|
|
|
|
|
build() {
|
2021-06-05 17:02:30 +02:00
|
|
|
cd php-$version
|
2015-08-07 11:58:40 +09:00
|
|
|
|
2021-06-05 17:02:30 +02:00
|
|
|
./configure --disable-all --with-gettext=shared,/usr
|
|
|
|
make build-modules
|
2015-08-07 11:58:40 +09:00
|
|
|
|
2021-06-05 17:02:30 +02:00
|
|
|
install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions}
|
|
|
|
install -m 755 modules/gettext.so $PKG/usr/lib/php/extensions/
|
2015-08-07 11:58:40 +09:00
|
|
|
|
2021-06-05 17:02:30 +02:00
|
|
|
printf 'extension=%s\n' gettext.so > $PKG/etc/php/conf.d/gettext.ini
|
2015-08-07 11:58:40 +09:00
|
|
|
}
|