blob: 6f5aa6622b28aa041418ae531bdb56029607340c (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Contributor: Andy Postnikov <apostnikov@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php7-xhprof
_pkgreal=xhprof
pkgver=2.0.2
pkgrel=1
pkgdesc="A Hierarchical Profiler for PHP"
url="https://github.com/longxinH/xhprof"
arch="all !s390x"
license="Apache-2.0"
depends="php7 php7-ctype"
makedepends="php7-dev autoconf"
subpackages="$pkgname-assets::noarch"
source="$pkgname-$pkgver.tar.gz::https://github.com/longxinH/xhprof/archive/v$pkgver.tar.gz
6507a35d72e9598700e37208c482329594fd3b41.patch"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
cd "$builddir"/extension
phpize7
./configure --with-php-config=php-config7
make
}
check() {
cd "$builddir"/extension
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 -f Makefile.local test_with_exit_status
}
package() {
cd "$builddir"/extension
make INSTALL_ROOT="$pkgdir"/ install
local confdir="$pkgdir/etc/php7/conf.d"
install -d "$confdir"
cat > "$confdir"/$_pkgreal.ini <<-EOF
extension=$_pkgreal.so
xhprof.output_dir=/tmp
EOF
local installdir="$pkgdir"/usr/share/php7/xhprof
install -d "$installdir"
cp -R "$builddir"/xhprof_lib "$installdir"
}
assets() {
pkgdesc="A Hierarchical Profiler for PHP (UI assets)"
depends="$pkgname graphviz ghostscript-fonts"
local installdir="$subpkgdir"/usr/share/php7/xhprof
install -d "$installdir"
cp -R "$builddir"/xhprof_html "$installdir"
cp -R "$builddir"/examples "$installdir"
}
sha512sums="6a3ea7994e7d23852d5265371bf59bfa41a3aab2e107b0293b8945adbbda78302ba827f95a54e0780582f06d9487d6e1894ecc2daada20c2ae87fa952e3ffd08 php7-xhprof-2.0.2.tar.gz
25d87a560cb344b62ba66f2cd0ebec9d512311d9e5c22ff7ab59d70f90b8c9b3e4d1fad0fdbbd8aa28da89328defc3d713525a88f2a42b06c6bd305f57e651b7 6507a35d72e9598700e37208c482329594fd3b41.patch"
|