aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2021-04-05 01:47:21 +0300
committerAndy Postnikov <apostnikov@gmail.com>2021-04-04 23:58:59 +0000
commitfe5279cb9eabcd7a42274a5e4eb6a35e7313b432 (patch)
tree3e31a244256a89156b72204d4d892354330f56df
parent510fb8b241e05238de867121c7131a071b3c02a4 (diff)
downloadaports-fe5279cb9eabcd7a42274a5e4eb6a35e7313b432.tar.gz
aports-fe5279cb9eabcd7a42274a5e4eb6a35e7313b432.tar.bz2
aports-fe5279cb9eabcd7a42274a5e4eb6a35e7313b432.tar.xz
testing/php8-phalcon: new aport
-rw-r--r--testing/php8-phalcon/APKBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/testing/php8-phalcon/APKBUILD b/testing/php8-phalcon/APKBUILD
new file mode 100644
index 0000000000..c902f19613
--- /dev/null
+++ b/testing/php8-phalcon/APKBUILD
@@ -0,0 +1,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"