summaryrefslogtreecommitdiffstats
path: root/testing/php-zend-opcache/APKBUILD
blob: 1401c2f6e3599bb0d750d6d8b81cd17b37ab28f9 (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
# Contributor: V.Krishn <vkrishn4@gmail.com>
# Maintainer: 
pkgname=php-zendopcache
pkgver=7.0.1
pkgrel=0
pkgdesc="Zend OPcache for PHP"
url="https://github.com/zend-dev/ZendOptimizerPlus"
arch="all"
license="PHP"
depends="php"
makedepends="php-dev autoconf pcre-dev"
subpackages=""
source="saveas-https://github.com/zend-dev/ZendOptimizerPlus/archive/v7.0.1.tar.gz/$pkgname-$pkgver.tar.gz
opcache.ini"
_builddir="$srcdir/ZendOptimizerPlus-$pkgver"

build() {
	cd "$_builddir"
	phpize || return 1
	./configure --enable-opcache \
		--with-php-config=/usr/bin/php-config
	make || return 1
}

package() {
	cd "$_builddir"
	make INSTALL_ROOT=$pkgdir install || return 1
	install -D -m644 "$srcdir"/opcache.ini "$pkgdir"/etc/php/conf.d/opcache.ini
	extension_dir=`grep '^extension_dir' /usr/bin/php-config | awk -F'=' '{print $2}' | replace "'" ""`
	sed -i -e "s|{{extension_dir}}|$extension_dir|" \
		"$pkgdir"/etc/php/conf.d/opcache.ini || return 1
}

md5sums="c5d41c2404916e5aaceff5c7f7d887ce  php-zendopcache-7.0.1.tar.gz
b80548491db141fb5d7a823445ec2ba9  opcache.ini"
sha256sums="0c024bc21a0e8a0c5b786ad346bbbe503a10b2ba6892ee5aa729e227e7c0700e  php-zendopcache-7.0.1.tar.gz
31437112d2e8a5458bed5f582c552ad411c317b4a75459a7eded3c4d309d39f6  opcache.ini"
sha512sums="6954d542b74c78c14ca95b6e27ba21b248c09273273dba3ff2d4805dfc8e9ecc829ef709ec70e5a25c034880a254f5702a65a0dd31b55fe25b1343d389d53374  php-zendopcache-7.0.1.tar.gz
c0ee1cdb37bd505300d67e395a3de1ad5d8eb25868018a05ab4dafce742a6ace88d5b08646cd35488a0266bcacef8e35cc4486484f6e5f5bce32cb133377f4a8  opcache.ini"