🔒 Repository is read-only – file editing is disabled.

recipes/gui/php/PAGBUILD.yaml main

96 linii Raw ← Powrót
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
pkgname: php
pkgver: '8.5.9'
pkgrel: '1'
pkgdesc: 'PHP is PHP Hypertext Preprocesor.'
url: 'https://www.php.net'
arch: x86_64
license:
- PHP

depends: []
makedepends:
- readline
- apache
- libxml2
- aspell
- 'aspell-dict'
- libxslt
- enchant
- freetype
- libexif
- 'libjpeg-turbo'
- libpng
- libtiff
- pcre2
- libzip
- curl
- db
- mariadb
- openldap
- postgresql
- sqlite
- oniguruma
- unixodbc
- openssl
- 'cyrus-sasl'
- kerberos

source:
- 'apache.conf'
- 'https://php.net/distributions/${pkgname}-${pkgver}.tar.xz'

sha256sums:
- SKIP
- SKIP

build: |
  cd ${pkgname}-${pkgver}
  CFLAGS="${CFLAGS} -fPIC"

  ./configure --prefix=/usr            \
          --sysconfdir=/etc/php        \
          --localstatedir=/var         \
          --with-config-file-path=/etc/php \
          --with-config-file-scan-dir=/etc/php/conf.d \
          --with-layout=GNU            \
          --mandir=/usr/share/man      \
          --disable-rpath              \
          --with-zlib                  \
          --enable-bcmath=shared       \
          --enable-calendar=shared     \
          --enable-dba=shared          \
          --enable-exif=shared         \
          --enable-gd=shared           \
          --enable-intl=shared         \
          --enable-mbstring            \
          --with-zip=shared            \
          --with-bz2=shared            \
          --with-curl=shared           \
          --with-enchant=shared        \
          --with-gettext=shared        \
          --with-iconv=shared          \
          --with-readline              \
          --with-openssl               \
          --with-pdo-mysql=shared      \
          --with-mysqli=shared         \
          --with-mysql-sock=/run/mysqld/mysqld.sock \
          --with-apxs2             

  make
  make -j1 INSTALL_ROOT=${PKGDIR} \
  install-{modules,cli,build,headers,programs,pharcmd}

  rm -f ${PKGDIR}/usr/lib/php/modules/*.a

  install -d -m755 ${PKGDIR}/etc/php/conf.d
  install -D -m644 php.ini-production \
  ${PKGDIR}/etc/php/php.ini

  install -D -m755 .libs/libphp.so \
  ${PKGDIR}/usr/lib/httpd/modules/libphp.so

  install -D -m644 ../apache.conf \
  ${PKGDIR}/etc/httpd/extra/httpd-php.conf

package: |
  true