2020-02-15 14:00:40 +01:00
|
|
|
# Description: Multibyte string module for PHP
|
2021-06-05 17:02:30 +02:00
|
|
|
# URL: https://www.php.net
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2021-10-20 11:19:40 +02:00
|
|
|
# Depends on: oniguruma libpcre2
|
2020-02-15 14:00:40 +01:00
|
|
|
|
|
|
|
name=php-mbstring
|
2022-07-14 10:44:45 +02:00
|
|
|
version=8.1.8
|
2020-02-15 14:00:40 +01:00
|
|
|
release=1
|
2020-06-06 13:00:05 +02:00
|
|
|
source=(https://www.php.net/distributions/php-$version.tar.xz)
|
2020-02-15 14:00:40 +01:00
|
|
|
|
|
|
|
build() {
|
2021-06-05 17:02:30 +02:00
|
|
|
cd php-$version
|
2020-02-15 14:00:40 +01:00
|
|
|
|
2021-06-05 17:02:30 +02:00
|
|
|
./configure \
|
|
|
|
--disable-all \
|
|
|
|
--enable-mbstring=shared \
|
|
|
|
--with-external-pcre
|
|
|
|
make build-modules
|
2020-02-15 14:00:40 +01:00
|
|
|
|
2021-06-05 17:02:30 +02:00
|
|
|
install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions}
|
|
|
|
install -m 755 modules/mbstring.so $PKG/usr/lib/php/extensions/
|
2020-02-15 14:00:40 +01:00
|
|
|
|
2021-06-05 17:02:30 +02:00
|
|
|
printf 'extension=%s\n' mbstring.so > $PKG/etc/php/conf.d/mbstring.ini
|
2020-02-15 14:00:40 +01:00
|
|
|
}
|