opt/php-gd/Pkgfile

26 lines
537 B
Plaintext
Raw Normal View History

2015-11-04 17:30:47 +01:00
# Description: GD module for PHP
# URL: https://www.php.net
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: libgd
2015-08-07 04:58:40 +02:00
name=php-gd
2023-06-12 23:12:03 +02:00
version=8.2.7
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() {
cd php-$version
2015-08-07 04:58:40 +02:00
./configure \
--disable-all \
--enable-gd=shared \
--with-external-gd
2015-08-07 04:58:40 +02:00
make build-modules
2015-08-07 04:58:40 +02:00
install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions}
install -m 755 modules/gd.so $PKG/usr/lib/php/extensions/
printf 'extension=%s\n' gd.so > $PKG/etc/php/conf.d/gd.ini
2015-08-07 04:58:40 +02:00
}