2015-11-04 17:30:58 +01:00
|
|
|
# Description: Gettext module for PHP
|
2020-06-06 13:00:05 +02:00
|
|
|
# URL: https://www.php.net
|
2015-11-04 17:30:58 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
|
|
# Packager: Alan Mizrahi, alan at mizrahi dot com dot ve
|
|
|
|
# Depends on:
|
2015-08-07 04:58:40 +02:00
|
|
|
|
|
|
|
name=php-gettext
|
2020-05-15 16:40:05 +02:00
|
|
|
version=7.4.6
|
2015-08-07 04:58:40 +02:00
|
|
|
release=1
|
2020-06-06 13:00:05 +02:00
|
|
|
source=(https://www.php.net/distributions/php-$version.tar.xz)
|
2015-08-07 04:58:40 +02:00
|
|
|
|
|
|
|
build() {
|
2018-03-30 12:49:56 +02:00
|
|
|
cd php-$version
|
2015-08-07 04:58:40 +02:00
|
|
|
|
2018-03-30 12:49:56 +02:00
|
|
|
./configure --disable-all --with-gettext=shared,/usr
|
|
|
|
make build-modules
|
2015-08-07 04:58:40 +02:00
|
|
|
|
2018-03-30 12:49:56 +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 04:58:40 +02:00
|
|
|
|
2018-03-30 12:49:56 +02:00
|
|
|
printf 'extension=%s\n' gettext.so > $PKG/etc/php/conf.d/gettext.ini
|
2015-08-07 04:58:40 +02:00
|
|
|
}
|