aboutsummaryrefslogblamecommitdiffstats
path: root/testing/php7-spx/APKBUILD
blob: 3c36af7436421124d97280a83c22a680dfdc47da (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   
            
             

                                                                                             

                                                 
                          
                     


                                                                                                          

         


                                                               


         

                                                                         


           
                                           


                                                            

 
                                                                                                                                                                    
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php7-spx
_extname=spx
pkgver=0.4.10
pkgrel=1
pkgdesc="A simple & straight-to-the-point PHP 7 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 zlib-dev"
source="php-$_extname-$pkgver.tar.gz::https://github.com/NoiseByNorthwest/php-spx/archive/v$pkgver.tar.gz"
builddir="$srcdir/php-$_extname-$pkgver"

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

check() {
	make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff
	php7 -d extension=modules/$_extname.so --ri $_extname
}

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

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