summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxwell Pray2018-03-26 12:36:23 -0700
committerMaxwell Pray2018-03-26 12:36:23 -0700
commit7325f22a3c71434797e945b0c0a1974137595766 (patch)
treeb9e7130eddbcdcd3c36573e24493476488dcec6d
parentff839427cdc6589b8e55db840a665d7d99b8e84b (diff)
downloadaur-7325f22a3c71434797e945b0c0a1974137595766.tar.gz
Use spaces instead of tabs in PKGBUILD.
-rw-r--r--PKGBUILD400
1 files changed, 200 insertions, 200 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 16ab97af1e8..47956df627f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -44,292 +44,292 @@ sha512sums=('2b23795ffcb9d741adafe8a1e01e6988bb86ce7c6380bdbe822f8f6485e217ed2e9
_optdir=/opt/$pkgbase
prepare() {
- cd ${srcdir}/${_pkgbase}-${pkgver}
+ cd ${srcdir}/${_pkgbase}-${pkgver}
- patch -p0 -i ${srcdir}/apache.patch
- patch -p0 -i ${srcdir}/php-fpm.patch
- patch -p0 -i ${srcdir}/php.ini.patch
- patch -p1 -i ../enchant-2.patch
+ patch -p0 -i ${srcdir}/apache.patch
+ patch -p0 -i ${srcdir}/php-fpm.patch
+ patch -p0 -i ${srcdir}/php.ini.patch
+ patch -p1 -i ../enchant-2.patch
}
build() {
- local _phpconfig="--srcdir=../${_pkgbase}-${pkgver} \
- --config-cache \
- --prefix=${_optdir}/usr \
- --sbindir=${_optdir}/usr/bin \
- --sysconfdir=${_optdir}/etc/php \
- --localstatedir=${_optdir}/var \
- --with-layout=GNU \
- --with-config-file-path=${_optdir}/etc/php \
- --with-config-file-scan-dir=${_optdir}/etc/php/conf.d \
- --disable-rpath \
- --mandir=${_optdir}/usr/share/man \
- --without-pear \
- "
-
- local _phpextensions="\
- --enable-bcmath=shared \
- --enable-calendar=shared \
- --enable-dba=shared \
- --enable-exif=shared \
- --enable-ftp=shared \
+ local _phpconfig="--srcdir=../${_pkgbase}-${pkgver} \
+ --config-cache \
+ --prefix=${_optdir}/usr \
+ --sbindir=${_optdir}/usr/bin \
+ --sysconfdir=${_optdir}/etc/php \
+ --localstatedir=${_optdir}/var \
+ --with-layout=GNU \
+ --with-config-file-path=${_optdir}/etc/php \
+ --with-config-file-scan-dir=${_optdir}/etc/php/conf.d \
+ --disable-rpath \
+ --mandir=${_optdir}/usr/share/man \
+ --without-pear \
+ "
+
+ local _phpextensions="\
+ --enable-bcmath=shared \
+ --enable-calendar=shared \
+ --enable-dba=shared \
+ --enable-exif=shared \
+ --enable-ftp=shared \
--enable-gd-native-ttf \
- --enable-intl=shared \
- --enable-mbstring \
- --enable-shmop=shared \
- --enable-soap=shared \
- --enable-sockets=shared \
- --enable-sysvmsg=shared \
- --enable-sysvsem=shared \
- --enable-sysvshm=shared \
- --enable-zip=shared \
- --with-bz2=shared \
- --with-curl=shared \
- --with-db4=/usr \
- --with-enchant=shared,/usr \
- --with-freetype-dir=/usr \
- --with-gd=shared,/usr \
- --with-gdbm \
- --with-gettext=shared \
- --with-gmp=shared \
- --with-iconv=shared \
- --with-imap-ssl \
- --with-imap=shared \
- --with-kerberos=/usr \
- --with-ldap=shared \
- --with-ldap-sasl \
- --with-libzip \
- --with-mhash \
- --with-mysql-sock=/run/mysqld/mysqld.sock \
- --with-mysqli=shared,mysqlnd \
- --with-openssl \
- --with-password-argon2 \
- --with-pcre-regex=/usr \
- --with-pdo-dblib=shared,/usr \
- --with-pdo-mysql=shared,mysqlnd \
- --with-pdo-odbc=shared,unixODBC,/usr \
- --with-pdo-pgsql=shared \
- --with-pdo-sqlite=shared,/usr \
- --with-pgsql=shared \
- --with-pspell=shared \
- --with-readline \
- --with-snmp=shared \
- --with-mcrypt=shared \
- --with-sqlite3=shared,/usr \
- --with-tidy=shared \
- --with-unixODBC=shared,/usr \
- --with-xmlrpc=shared \
- --with-xsl=shared \
- --with-zlib \
- --enable-pcntl \
- "
-
- EXTENSION_DIR=${_optdir}/usr/lib/php/modules
- export EXTENSION_DIR
+ --enable-intl=shared \
+ --enable-mbstring \
+ --enable-shmop=shared \
+ --enable-soap=shared \
+ --enable-sockets=shared \
+ --enable-sysvmsg=shared \
+ --enable-sysvsem=shared \
+ --enable-sysvshm=shared \
+ --enable-zip=shared \
+ --with-bz2=shared \
+ --with-curl=shared \
+ --with-db4=/usr \
+ --with-enchant=shared,/usr \
+ --with-freetype-dir=/usr \
+ --with-gd=shared,/usr \
+ --with-gdbm \
+ --with-gettext=shared \
+ --with-gmp=shared \
+ --with-iconv=shared \
+ --with-imap-ssl \
+ --with-imap=shared \
+ --with-kerberos=/usr \
+ --with-ldap=shared \
+ --with-ldap-sasl \
+ --with-libzip \
+ --with-mhash \
+ --with-mysql-sock=/run/mysqld/mysqld.sock \
+ --with-mysqli=shared,mysqlnd \
+ --with-openssl \
+ --with-password-argon2 \
+ --with-pcre-regex=/usr \
+ --with-pdo-dblib=shared,/usr \
+ --with-pdo-mysql=shared,mysqlnd \
+ --with-pdo-odbc=shared,unixODBC,/usr \
+ --with-pdo-pgsql=shared \
+ --with-pdo-sqlite=shared,/usr \
+ --with-pgsql=shared \
+ --with-pspell=shared \
+ --with-readline \
+ --with-snmp=shared \
+ --with-mcrypt=shared \
+ --with-sqlite3=shared,/usr \
+ --with-tidy=shared \
+ --with-unixODBC=shared,/usr \
+ --with-xmlrpc=shared \
+ --with-xsl=shared \
+ --with-zlib \
+ --enable-pcntl \
+ "
+
+ EXTENSION_DIR=${_optdir}/usr/lib/php/modules
+ export EXTENSION_DIR
[[ -d ${srcdir}/build ]] && rm -r ${srcdir}/build
- mkdir ${srcdir}/build
- cd ${srcdir}/build
- ln -s ../${_pkgbase}-${pkgver}/configure
- ./configure ${_phpconfig} \
- --enable-cgi \
- --enable-fpm \
- --with-fpm-systemd \
- --with-fpm-acl \
- --with-fpm-user=http \
- --with-fpm-group=http \
- --enable-embed=shared \
- ${_phpextensions}
- make
-
- # apache
- # reuse the previous run; this will save us a lot of time
- cp -a ${srcdir}/build ${srcdir}/build-apache
- cd ${srcdir}/build-apache
- ./configure ${_phpconfig} \
- --with-apxs2 \
- ${_phpextensions}
- make
-
- # phpdbg
- cp -a ${srcdir}/build ${srcdir}/build-phpdbg
- cd ${srcdir}/build-phpdbg
- ./configure ${_phpconfig} \
- --enable-phpdbg \
- ${_phpextensions}
- make
+ mkdir ${srcdir}/build
+ cd ${srcdir}/build
+ ln -s ../${_pkgbase}-${pkgver}/configure
+ ./configure ${_phpconfig} \
+ --enable-cgi \
+ --enable-fpm \
+ --with-fpm-systemd \
+ --with-fpm-acl \
+ --with-fpm-user=http \
+ --with-fpm-group=http \
+ --enable-embed=shared \
+ ${_phpextensions}
+ make
+
+ # apache
+ # reuse the previous run; this will save us a lot of time
+ cp -a ${srcdir}/build ${srcdir}/build-apache
+ cd ${srcdir}/build-apache
+ ./configure ${_phpconfig} \
+ --with-apxs2 \
+ ${_phpextensions}
+ make
+
+ # phpdbg
+ cp -a ${srcdir}/build ${srcdir}/build-phpdbg
+ cd ${srcdir}/build-phpdbg
+ ./configure ${_phpconfig} \
+ --enable-phpdbg \
+ ${_phpextensions}
+ make
}
check() {
- cd ${srcdir}/${_pkgbase}-${pkgver}
+ cd ${srcdir}/${_pkgbase}-${pkgver}
- # Check if sendmail was configured correctly (FS#47600)
- ${srcdir}/build/sapi/cli/php -n -r 'echo ini_get("sendmail_path");' | grep -q '/usr/bin/sendmail'
+ # Check if sendmail was configured correctly (FS#47600)
+ ${srcdir}/build/sapi/cli/php -n -r 'echo ini_get("sendmail_path");' | grep -q '/usr/bin/sendmail'
- export REPORT_EXIT_STATUS=1
- export NO_INTERACTION=1
- export SKIP_ONLINE_TESTS=1
- export SKIP_SLOW_TESTS=1
+ export REPORT_EXIT_STATUS=1
+ export NO_INTERACTION=1
+ export SKIP_ONLINE_TESTS=1
+ export SKIP_SLOW_TESTS=1
- ${srcdir}/build/sapi/cli/php -n run-tests.php -n -P {tests,Zend}
+ ${srcdir}/build/sapi/cli/php -n run-tests.php -n -P {tests,Zend}
}
package_php71() {
- pkgdesc='A general-purpose scripting language that is especially suited to web development'
- depends=('libxml2' 'curl' 'libzip' 'pcre' 'argon2')
- backup=("${_optdir#/}etc/php/php.ini")
-
- cd ${srcdir}/build
- make -j1 INSTALL_ROOT=${pkgdir} install-{modules,cli,build,headers,programs,pharcmd}
- install -D -m644 ${srcdir}/${_pkgbase}-${pkgver}/php.ini-production ${pkgdir}${_optdir}/etc/php/php.ini
- install -d -m755 ${pkgdir}${_optdir}/etc/php/conf.d/
-
- # remove static modules
- rm -f ${pkgdir}${_optdir}/usr/lib/php/modules/*.a
- # remove modules provided by sub packages
- rm -f ${pkgdir}${_optdir}/usr/lib/php/modules/{enchant,gd,imap,intl,mcrypt,odbc,pdo_dblib,pdo_odbc,pgsql,pdo_pgsql,pspell,snmp,sqlite3,pdo_sqlite,tidy,xsl}.so
- # remove empty directory
- rmdir ${pkgdir}${_optdir}/usr/include/php/include
+ pkgdesc='A general-purpose scripting language that is especially suited to web development'
+ depends=('libxml2' 'curl' 'libzip' 'pcre' 'argon2')
+ backup=("${_optdir#/}etc/php/php.ini")
+
+ cd ${srcdir}/build
+ make -j1 INSTALL_ROOT=${pkgdir} install-{modules,cli,build,headers,programs,pharcmd}
+ install -D -m644 ${srcdir}/${_pkgbase}-${pkgver}/php.ini-production ${pkgdir}${_optdir}/etc/php/php.ini
+ install -d -m755 ${pkgdir}${_optdir}/etc/php/conf.d/
+
+ # remove static modules
+ rm -f ${pkgdir}${_optdir}/usr/lib/php/modules/*.a
+ # remove modules provided by sub packages
+ rm -f ${pkgdir}${_optdir}/usr/lib/php/modules/{enchant,gd,imap,intl,mcrypt,odbc,pdo_dblib,pdo_odbc,pgsql,pdo_pgsql,pspell,snmp,sqlite3,pdo_sqlite,tidy,xsl}.so
+ # remove empty directory
+ rmdir ${pkgdir}${_optdir}/usr/include/php/include
}
package_php71-cgi() {
- pkgdesc='CGI and FCGI SAPI for PHP'
- depends=("$pkgbase")
+ pkgdesc='CGI and FCGI SAPI for PHP'
+ depends=("$pkgbase")
- cd ${srcdir}/build
- make -j1 INSTALL_ROOT=${pkgdir} install-cgi
+ cd ${srcdir}/build
+ make -j1 INSTALL_ROOT=${pkgdir} install-cgi
}
package_php71-apache() {
- pkgdesc='Apache SAPI for PHP'
- depends=("$pkgbase" 'apache')
- backup=("${_optdir#/}etc/httpd/conf/extra/php7_module.conf")
+ pkgdesc='Apache SAPI for PHP'
+ depends=("$pkgbase" 'apache')
+ backup=("${_optdir#/}etc/httpd/conf/extra/php7_module.conf")
- install -D -m755 ${srcdir}/build-apache/libs/libphp7.so ${pkgdir}/usr/lib/httpd/modules/${pkgbase}.so
- install -D -m644 ${srcdir}/apache.conf ${pkgdir}/etc/httpd/conf/extra/${pkgbase}_module.conf
+ install -D -m755 ${srcdir}/build-apache/libs/libphp7.so ${pkgdir}/usr/lib/httpd/modules/${pkgbase}.so
+ install -D -m644 ${srcdir}/apache.conf ${pkgdir}/etc/httpd/conf/extra/${pkgbase}_module.conf
}
package_php71-fpm() {
- pkgdesc='FastCGI Process Manager for PHP'
- depends=("$pkgbase" 'systemd')
- backup=("${_optdir#/}etc/php/php-fpm.conf" "${_optdir#/}etc/php/php-fpm.d/www.conf")
- options=('!emptydirs')
-
- cd ${srcdir}/build
- make -j1 INSTALL_ROOT=${pkgdir} install-fpm
- install -D -m644 sapi/fpm/php-fpm.service ${pkgdir}/usr/lib/systemd/system/php71-fpm.service
- install -D -m644 ${srcdir}/php-fpm.tmpfiles ${pkgdir}/usr/lib/tmpfiles.d/php71-fpm.conf
+ pkgdesc='FastCGI Process Manager for PHP'
+ depends=("$pkgbase" 'systemd')
+ backup=("${_optdir#/}etc/php/php-fpm.conf" "${_optdir#/}etc/php/php-fpm.d/www.conf")
+ options=('!emptydirs')
+
+ cd ${srcdir}/build
+ make -j1 INSTALL_ROOT=${pkgdir} install-fpm
+ install -D -m644 sapi/fpm/php-fpm.service ${pkgdir}/usr/lib/systemd/system/php71-fpm.service
+ install -D -m644 ${srcdir}/php-fpm.tmpfiles ${pkgdir}/usr/lib/tmpfiles.d/php71-fpm.conf
}
package_php71-embed() {
- pkgdesc='Embedded PHP SAPI library'
- depends=("$pkgbase" 'libsystemd')
- options=('!emptydirs')
+ pkgdesc='Embedded PHP SAPI library'
+ depends=("$pkgbase" 'libsystemd')
+ options=('!emptydirs')
- cd ${srcdir}/build
- make -j1 INSTALL_ROOT=${pkgdir} PHP_SAPI=embed install-sapi
+ cd ${srcdir}/build
+ make -j1 INSTALL_ROOT=${pkgdir} PHP_SAPI=embed install-sapi
}
package_php71-phpdbg() {
- pkgdesc='Interactive PHP debugger'
- depends=("$pkgbase")
- options=('!emptydirs')
+ pkgdesc='Interactive PHP debugger'
+ depends=("$pkgbase")
+ options=('!emptydirs')
- cd ${srcdir}/build-phpdbg
- make -j1 INSTALL_ROOT=${pkgdir} install-phpdbg
+ cd ${srcdir}/build-phpdbg
+ make -j1 INSTALL_ROOT=${pkgdir} install-phpdbg
}
package_php71-dblib() {
- pkgdesc='dblib module for PHP'
- depends=("$pkgbase" 'freetds')
+ pkgdesc='dblib module for PHP'
+ depends=("$pkgbase" 'freetds')
- install -D -m755 ${srcdir}/build/modules/pdo_dblib.so ${pkgdir}${_optdir}/usr/lib/php/modules/pdo_dblib.so
+ install -D -m755 ${srcdir}/build/modules/pdo_dblib.so ${pkgdir}${_optdir}/usr/lib/php/modules/pdo_dblib.so
}
package_php71-enchant() {
- pkgdesc='enchant module for PHP'
- depends=("$pkgbase" 'enchant')
+ pkgdesc='enchant module for PHP'
+ depends=("$pkgbase" 'enchant')
- install -D -m755 ${srcdir}/build/modules/enchant.so ${pkgdir}${_optdir}/usr/lib/php/modules/enchant.so
+ install -D -m755 ${srcdir}/build/modules/enchant.so ${pkgdir}${_optdir}/usr/lib/php/modules/enchant.so
}
package_php71-gd() {
- pkgdesc='gd module for PHP'
- depends=("$pkgbase" 'gd')
+ pkgdesc='gd module for PHP'
+ depends=("$pkgbase" 'gd')
- install -D -m755 ${srcdir}/build/modules/gd.so ${pkgdir}${_optdir}/usr/lib/php/modules/gd.so
+ install -D -m755 ${srcdir}/build/modules/gd.so ${pkgdir}${_optdir}/usr/lib/php/modules/gd.so
}
package_php71-imap() {
- pkgdesc='imap module for PHP'
- depends=("$pkgbase" 'c-client')
+ pkgdesc='imap module for PHP'
+ depends=("$pkgbase" 'c-client')
- install -D -m755 ${srcdir}/build/modules/imap.so ${pkgdir}${_optdir}/usr/lib/php/modules/imap.so
+ install -D -m755 ${srcdir}/build/modules/imap.so ${pkgdir}${_optdir}/usr/lib/php/modules/imap.so
}
package_php71-intl() {
- pkgdesc='intl module for PHP'
- depends=("$pkgbase" 'icu')
+ pkgdesc='intl module for PHP'
+ depends=("$pkgbase" 'icu')
- install -D -m755 ${srcdir}/build/modules/intl.so ${pkgdir}${_optdir}/usr/lib/php/modules/intl.so
+ install -D -m755 ${srcdir}/build/modules/intl.so ${pkgdir}${_optdir}/usr/lib/php/modules/intl.so
}
package_php71-mcrypt() {
- pkgdesc='mcrypt module for PHP'
- depends=("$pkgbase" 'libmcrypt' 'libtool')
+ pkgdesc='mcrypt module for PHP'
+ depends=("$pkgbase" 'libmcrypt' 'libtool')
- install -D -m755 ${srcdir}/build/modules/mcrypt.so ${pkgdir}${_optdir}/usr/lib/php/modules/mcrypt.so
+ install -D -m755 ${srcdir}/build/modules/mcrypt.so ${pkgdir}${_optdir}/usr/lib/php/modules/mcrypt.so
}
package_php71-odbc() {
- pkgdesc='ODBC modules for PHP'
- depends=("$pkgbase" 'unixodbc')
+ pkgdesc='ODBC modules for PHP'
+ depends=("$pkgbase" 'unixodbc')
- install -D -m755 ${srcdir}/build/modules/odbc.so ${pkgdir}${_optdir}/usr/lib/php/modules/odbc.so
- install -D -m755 ${srcdir}/build/modules/pdo_odbc.so ${pkgdir}${_optdir}/usr/lib/php/modules/pdo_odbc.so
+ install -D -m755 ${srcdir}/build/modules/odbc.so ${pkgdir}${_optdir}/usr/lib/php/modules/odbc.so
+ install -D -m755 ${srcdir}/build/modules/pdo_odbc.so ${pkgdir}${_optdir}/usr/lib/php/modules/pdo_odbc.so
}
package_php71-pgsql() {
- pkgdesc='PostgreSQL modules for PHP'
- depends=("$pkgbase" 'postgresql-libs')
+ pkgdesc='PostgreSQL modules for PHP'
+ depends=("$pkgbase" 'postgresql-libs')
- install -D -m755 ${srcdir}/build/modules/pgsql.so ${pkgdir}${_optdir}/usr/lib/php/modules/pgsql.so
- install -D -m755 ${srcdir}/build/modules/pdo_pgsql.so ${pkgdir}${_optdir}/usr/lib/php/modules/pdo_pgsql.so
+ install -D -m755 ${srcdir}/build/modules/pgsql.so ${pkgdir}${_optdir}/usr/lib/php/modules/pgsql.so
+ install -D -m755 ${srcdir}/build/modules/pdo_pgsql.so ${pkgdir}${_optdir}/usr/lib/php/modules/pdo_pgsql.so
}
package_php71-pspell() {
- pkgdesc='pspell module for PHP'
- depends=("$pkgbase" 'aspell')
+ pkgdesc='pspell module for PHP'
+ depends=("$pkgbase" 'aspell')
- install -D -m755 ${srcdir}/build/modules/pspell.so ${pkgdir}${_optdir}/usr/lib/php/modules/pspell.so
+ install -D -m755 ${srcdir}/build/modules/pspell.so ${pkgdir}${_optdir}/usr/lib/php/modules/pspell.so
}
package_php71-snmp() {
- pkgdesc='snmp module for PHP'
- depends=("$pkgbase" 'net-snmp')
+ pkgdesc='snmp module for PHP'
+ depends=("$pkgbase" 'net-snmp')
- install -D -m755 ${srcdir}/build/modules/snmp.so ${pkgdir}${_optdir}/usr/lib/php/modules/snmp.so
+ install -D -m755 ${srcdir}/build/modules/snmp.so ${pkgdir}${_optdir}/usr/lib/php/modules/snmp.so
}
package_php71-sqlite() {
- pkgdesc='sqlite module for PHP'
- depends=("$pkgbase" 'sqlite')
+ pkgdesc='sqlite module for PHP'
+ depends=("$pkgbase" 'sqlite')
- install -D -m755 ${srcdir}/build/modules/sqlite3.so ${pkgdir}${_optdir}/usr/lib/php/modules/sqlite3.so
- install -D -m755 ${srcdir}/build/modules/pdo_sqlite.so ${pkgdir}${_optdir}/usr/lib/php/modules/pdo_sqlite.so
+ install -D -m755 ${srcdir}/build/modules/sqlite3.so ${pkgdir}${_optdir}/usr/lib/php/modules/sqlite3.so
+ install -D -m755 ${srcdir}/build/modules/pdo_sqlite.so ${pkgdir}${_optdir}/usr/lib/php/modules/pdo_sqlite.so
}
package_php71-tidy() {
- pkgdesc='tidy module for PHP'
- depends=("$pkgbase" 'tidy')
+ pkgdesc='tidy module for PHP'
+ depends=("$pkgbase" 'tidy')
- install -D -m755 ${srcdir}/build/modules/tidy.so ${pkgdir}${_optdir}/usr/lib/php/modules/tidy.so
+ install -D -m755 ${srcdir}/build/modules/tidy.so ${pkgdir}${_optdir}/usr/lib/php/modules/tidy.so
}
package_php71-xsl() {
- pkgdesc='xsl module for PHP'
- depends=("$pkgbase" 'libxslt')
+ pkgdesc='xsl module for PHP'
+ depends=("$pkgbase" 'libxslt')
- install -D -m755 ${srcdir}/build/modules/xsl.so ${pkgdir}${_optdir}/usr/lib/php/modules/xsl.so
+ install -D -m755 ${srcdir}/build/modules/xsl.so ${pkgdir}${_optdir}/usr/lib/php/modules/xsl.so
}