aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-pecl-psr/APKBUILD
blob: 09e6d66c40383d1352f677efcceb66feb220de32 (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
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php7-pecl-psr
_extname=psr
pkgver=1.0.1
pkgrel=1
pkgdesc="PHP 7 extension provides the accepted PSR interfaces, so they can be used in an extension - PECL"
url="https://pecl.php.net/package/psr"
arch="all"
license="BSD-2-Clause"
depends="php7-common"
makedepends="php7-dev"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"
provides="php7-psr=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-psr" # for backward compatibility

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

check() {
	make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
}

package() {
	make INSTALL_ROOT="$pkgdir"/ install
	local _confdir="$pkgdir"/etc/php7/conf.d
	install -d $_confdir
	echo "extension=$_extname.so" > $_confdir/$_extname.ini
}

sha512sums="27ea717f4a8b9d69998ad28dccf7adfcbda0092b88b3087cf282a450e9324c67aa36678956e8b9bfa56360c03a5341a47f849a030e6f698015d4fc5d1fb59519  php-pecl-psr-1.0.1.tgz"