blob: 1a4bdd786f0de9bd001b76cf0b3cbbf2edfa9078 (
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
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=php7-phalcon
_pkgext=phalcon
_pkgreal=cphalcon
pkgver=3.4.3
_pkgver=${pkgver/_rc/RC}
pkgrel=1
pkgdesc="High performance, full-stack PHP framework delivered as a C extension"
url="https://github.com/phalcon/cphalcon"
arch="all"
license="BSD-3-Clause"
depends="php7-curl php7-fileinfo php7-gettext php7-json php7-mbstring php7-openssl php7-pdo"
makedepends="php7-dev autoconf pcre-dev gd-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/phalcon/$_pkgreal/archive/v$_pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$_pkgver/build/${pkgname%%-*}/safe"
build() {
cd "$builddir"
phpize7
./configure --prefix=/usr --with-php-config=/usr/bin/php-config7
make
}
check() {
# It needs some external services to run checks
php7 -d extension="$builddir"/modules/$_pkgext.so --ri $_pkgext
}
package() {
cd "$builddir"
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="dc48055aaab412fa48987624d6813f7d6f375a743b77e64464aab165e2a06988e5714c4262a1cc175f16079b08f6941b77c0a86b5a39c4ae41c51d80e85b930c php7-phalcon-3.4.3.tar.gz"
|