mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 13:16:45 +02:00
41 lines
1.3 KiB
Text
41 lines
1.3 KiB
Text
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=php84-pecl-memprof
|
|
_extname=memprof
|
|
pkgver=3.1.0
|
|
pkgrel=0
|
|
pkgdesc="fast and accurate memory profiler that can be used to find the cause of memory leaks in PHP 8.4 applications - PECL"
|
|
url="https://pecl.php.net/package/memprof"
|
|
arch="all !x86 !armv7 !armhf" # tests fail
|
|
license="MIT"
|
|
_phpv=84
|
|
_php=php$_phpv
|
|
depends="$_php-common"
|
|
makedepends="$_php-dev judy-dev bsd-compat-headers"
|
|
checkdepends="$_php-pecl-xdebug $_php-cgi"
|
|
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
|
|
builddir="$srcdir/$_extname-$pkgver"
|
|
|
|
build() {
|
|
phpize$_phpv
|
|
./configure --prefix=/usr --with-php-config=php-config$_phpv
|
|
make
|
|
}
|
|
|
|
check() {
|
|
# Tests require xdebug extension
|
|
local _depsdir=/usr/lib/$_php/modules
|
|
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test PHP_TEST_SHARED_EXTENSIONS="
|
|
-d zend_extension=$_depsdir/xdebug.so \
|
|
-d extension=modules/$_extname.so" TESTS=--show-diff
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
local _confdir="$pkgdir"/etc/$_php/conf.d
|
|
install -d $_confdir
|
|
echo "extension=$_extname" > $_confdir/$_extname.ini
|
|
}
|
|
|
|
sha512sums="
|
|
7c1fd39dc9fdc49686eb5dfb0162894a7f800c3d026abec43227d0f3350c9b755836d8672360729aafb5e6ad81314c38d300f25e50351573a085d2fd353640ed php-pecl-memprof-3.1.0.tgz
|
|
"
|