opt/php-mbstring/Pkgfile

25 lines
595 B
Plaintext
Raw Normal View History

# Description: Multibyte string module for PHP
# 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
name=php-mbstring
2023-06-12 23:12:03 +02:00
version=8.2.7
release=1
2020-06-06 13:00:05 +02:00
source=(https://www.php.net/distributions/php-$version.tar.xz)
build() {
cd php-$version
./configure \
--disable-all \
--enable-mbstring=shared \
--with-external-pcre
make build-modules
install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions}
install -m 755 modules/mbstring.so $PKG/usr/lib/php/extensions/
printf 'extension=%s\n' mbstring.so > $PKG/etc/php/conf.d/mbstring.ini
}