aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-spx/APKBUILD
blob: 35ca4c9afd276a3192bfe864549daeeb7432f60a (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
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php7-spx
_pkgreal=php-spx
pkgver=0.4.10
pkgrel=0
pkgdesc="A simple & straight-to-the-point PHP profiling extension with its built-in web UI"
url="https://github.com/NoiseByNorthwest/php-spx"
arch="x86_64"
license="GPL-3.0-or-later"
depends="php7-common"
makedepends="php7-dev autoconf re2c zlib-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/NoiseByNorthwest/php-spx/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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
	install -d "$pkgdir"/etc/php7/conf.d
	echo "extension=spx.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
}

sha512sums="f89effb851bc9f63e5846b4f8ab998027dfaf214b9111e185fa49dd36377c4ef3d8c98de2f51a7fffca51de7033143f77c5db22a50eb252e1b65d5ebf77a8b16  php7-spx-0.4.10.tar.gz"