APKBUILD 1.12 KB
Newer Older
1
2
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
3
pkgname=php81-pecl-phalcon
4
_extname=phalcon
5
pkgver=5.0.1
6
pkgrel=0
7
pkgdesc="High performance, full-stack PHP 8.1 framework delivered as a C extension"
8
9
10
url="https://phalcon.io/"
arch="all"
license="BSD-3-Clause"
11
12
_phpv=81
_php=php$_phpv
13
depends="
14
15
16
17
18
19
20
21
	$_php-curl
	$_php-fileinfo
	$_php-gettext
	$_php-mbstring
	$_php-openssl
	$_php-pdo
	$_php-session
	$_php-pecl-psr
22
	"
23
makedepends="$_php-dev"
24
25
source="php-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"
26
27

build() {
28
29
	phpize$_phpv
	./configure --prefix=/usr --with-php-config=/usr/bin/php-config$_phpv
30
31
32
33
	make
}

check() {
34
	# no tests provided
35
	$_php -d extension=modules/$_extname.so --ri $_extname
36
37
38
39
40
}

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

41
	local _confdir="$pkgdir"/etc/$_php/conf.d
42
43
44
45
	install -d $_confdir
	echo "extension=$_extname" > $_confdir/$_extname.ini
}

46
sha512sums="
47
303c291650770838d6497547a1d554dd2e4419a12e538eef728519ffe2792c9e305eb37b06a4c8f45d5286b9b2a7585cbc7ff3ca3b22128cbe7911830637c101  php-phalcon-5.0.1.tgz
48
"