aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-phalcon/APKBUILD
blob: 3b7f9b4b59ac031b91a3224f770e7bc99a61a22e (plain) (blame)
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
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=php7-phalcon
_pkgext=phalcon
_pkgreal=cphalcon
pkgver=4.1.0
_pkgver=${pkgver/_rc/RC}
pkgrel=0
pkgdesc="High performance, full-stack PHP framework delivered as a C extension"
url="https://phalcon.io/"
arch="all"
license="BSD-3-Clause"
depends="php7-curl php7-fileinfo php7-gettext php7-json php7-mbstring php7-openssl php7-pdo php7-session php7-pecl-psr"
makedepends="php7-dev gd-dev libexecinfo-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/phalcon/$_pkgreal/archive/v$_pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$_pkgver/build/${pkgname%%-*}/safe"

build() {
	phpize7
	./configure --prefix=/usr --with-php-config=/usr/bin/php-config7
	make
}

check() {
	# It needs some external services to run checks
	make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test \
		TESTS="../../../tests/syntax" \
		PHP_TEST_SHARED_EXTENSIONS=" \
		-d extension=/usr/lib/php7/modules/json.so \
		-d extension=/usr/lib/php7/modules/pdo.so \
		-d extension=/usr/lib/php7/modules/psr.so \
		-d extension=/usr/lib/php7/modules/session.so \
		-d extension=modules/phalcon.so"
}

package() {
	make INSTALL_ROOT="$pkgdir/" install
	rm -fr "$pkgdir/usr/include"
	install -d "$pkgdir"/etc/php7/conf.d
	echo "extension=$_pkgext.so" > "$pkgdir"/etc/php7/conf.d/$_pkgext.ini
}

sha512sums="2e4f8b1502a0c2f850a0e24f4981859cecc7dd262a517510be02c04b6d6b8ef082e574063706db75837762bda8fdc3f5aee9a6a06ad742c8f72f9eb30dc7f1c2  php7-phalcon-4.1.0.tar.gz"