1 # Contributor: Sebastien Duquette <ekse.0x@gmail.com>
5 pkgdesc="A Hierarchical Profiler for PHP"
7 url="http://pecl.php.net/package/xhprof"
11 optdepends=('graphviz: to generate callgraphs in reports')
12 backup=('etc/php/conf.d/xhprof.ini')
14 install=php-xhprof.install
15 source=("http://pecl.php.net/get/xhprof-$pkgver.tgz")
16 md5sums=('ae40b153d157e6369a32e2c1a59a61ec')
19 cd "$srcdir/xhprof-$pkgver/extension/"
22 ./configure --prefix=/usr --with-php-config=$(which php-config)
24 make INSTALL_ROOT="$pkgdir/" install
25 echo ';extension=xhprof.so' > xhprof.ini
26 install -D -m644 xhprof.ini "$pkgdir/etc/php/conf.d/xhprof.ini"
28 # HTML Report interface
30 mkdir -p $pkgdir/usr/share/webapps/xhprof/
31 cp -ra xhprof_html $pkgdir/usr/share/webapps/xhprof/
32 cp -ra xhprof_lib $pkgdir/usr/share/webapps/xhprof/
35 mkdir -p $pkgdir/etc/webapps/xhprof/
36 cat >$pkgdir/etc/webapps/xhprof/xhprof.example.conf <<EOF
37 Alias /xhprof "/usr/share/webapps/xhprof/xhprof_html"
38 <Directory "/usr/share/webapps/xhprof/xhprof_html">
40 Options FollowSymlinks
48 #Y vim:set ts=2 sw=2 et: