aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php8-phalcon/APKBUILD
blob: c902f1961373d6a443faa660e9b827f0d6512b79 (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
44
45
46
47
48
49
50
51
52
53
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php8-phalcon
_extname=phalcon
_pkgreal=cphalcon
pkgver=5.0.0_alpha1
_pkgver=${pkgver/_alpha/-alpha.}
pkgrel=0
pkgdesc="High performance, full-stack PHP 8 framework delivered as a C extension"
url="https://phalcon.io/"
arch="all"
license="BSD-3-Clause"
depends="
	php8-curl
	php8-fileinfo
	php8-gettext
	php8-mbstring
	php8-openssl
	php8-pdo
	php8-session
	php8-pecl-psr
	"
makedepends="php8-dev gd-dev libexecinfo-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/phalcon/cphalcon/archive/v$_pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$_pkgver/build/${pkgname%%-*}/safe"

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

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

package() {
	make INSTALL_ROOT="$pkgdir" install

	local _confdir="$pkgdir"/etc/php8/conf.d
	install -d $_confdir
	echo "extension=$_extname" > $_confdir/$_extname.ini
}

sha512sums="eb4f31fc4e1f46e7d34011fc83371d7d1de068855c2e3278e92598c80283cff1791940c631fe36f71b1e33b5fc805685fa3a3b3d6f6aea846625eaf25298e492  php8-phalcon-5.0.0_alpha1.tar.gz"