summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b455703d40e3634f13f4e2351e3425a01e29778a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# Maintainer: preparationh67 <preparationh67 at gmail.com>

_pkgbase=php
_phpver=7.1.10
_pkgname=php-pear
pkgname=php-pear-src
pkgver=1.10.5
pkgrel=2
pkgdesc="PHP Extension and Application Repository"
arch=('i686' 'x86_64')
license=('PHP')
conflicts=('php-pear')
url='http://pear.php.net'
makedepends=('apache' 'c-client' 'postgresql-libs' 'libldap' 'smtp-forwarder'
             'sqlite' 'unixodbc' 'net-snmp' 'libzip' 'enchant' 'file' 'freetds'
             'libmcrypt' 'tidyhtml' 'aspell' 'libltdl' 'gd' 'icu'
             'curl' 'libxslt' 'openssl' 'db' 'gmp' 'systemd')

source=("http://php.net/distributions/${_pkgbase}-${_phpver}.tar.xz"
	"http://php.net/distributions/${_pkgbase}-${_phpver}.tar.xz.asc")

validpgpkeys=('528995BFEDFBA7191D46839EF9BA0ADA31CBD89E')

build() {
	local _phpconfig="--srcdir=../${_pkgbase}-${_phpver} \
		--config-cache \
		--prefix=/usr \
		--sysconfdir=/etc/${_pkgbase} \
		--localstatedir=/var \
		--libdir=/usr/lib/${_pkgbase} \
		--datarootdir=/usr/share/${_pkgbase} \
		--datadir=/usr/share/${_pkgbase} \
		--with-layout=GNU \
		--with-config-file-path=/etc/${_pkgbase} \
		--with-config-file-scan-dir=/etc/${_pkgbase}/conf.d \
		--disable-rpath \
		--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-opcache \
		--enable-phar=shared \
		--enable-posix=shared \
		--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-fpm-systemd \
		--with-freetype-dir=/usr \
		--with-xpm-dir=/usr \
		--with-gd=shared,/usr \
		--with-gdbm \
		--with-gettext=shared \
		--with-gmp=shared \
		--with-iconv=shared \
		--with-icu-dir=/usr \
		--with-imap-ssl \
		--with-imap=shared \
		--with-kerberos=/usr \
		--with-jpeg-dir=/usr \
		--with-vpx-dir=/usr \
		--with-ldap=shared \
		--with-ldap-sasl \
		--with-libzip \
		--with-mcrypt=shared \
		--with-mhash \
		--with-mssql=shared \
		--with-mysql-sock=/run/mysqld/mysqld.sock \
		--with-mysql=shared,mysqlnd \
		--with-mysqli=shared,mysqlnd \
		--with-openssl=shared \
		--with-pcre-regex=/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-png-dir=/usr \
		--with-pspell=shared \
		--with-snmp=shared \
		--with-sqlite3=shared,/usr \
		--with-tidy=shared \
		--with-unixODBC=shared,/usr \
		--with-xmlrpc=shared \
		--with-xsl=shared \
		"

	export EXTENSION_DIR=/usr/lib/${_pkgbase}/modules
	export PEAR_INSTALLDIR=/usr/share/${_pkgbase}/pear

	cd ${srcdir}/${_pkgbase}-${_phpver}
	# pear
	mkdir ${srcdir}/build-pear
	cd ${srcdir}/build-pear
	ln -sf ../${_pkgbase}-${_phpver}/configure
	./configure ${_phpconfig} \
		--disable-cgi \
		--with-readline \
		--enable-pcntl \
		--with-pear \
		${_phpextensions}
	make
}

package() {
	pkgdesc='PHP Extension and Application Repository'
	depends=("${_pkgbase}")
	provides=("${_pkgbase}-pear=$pkgver")
	backup=("etc/${_pkgbase}/pear.conf")

	cd ${srcdir}/build-pear
	make install-pear INSTALL_ROOT=${pkgdir}
	rm -rf ${pkgdir}/usr/share/${_pkgbase}/pear/.{channels,depdb,depdblock,filemap,lock,registry}

}
md5sums=('de80c2f119d2b864c65f114ba3e438f1'
	 'SKIP')