mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
39 lines
1.1 KiB
Text
39 lines
1.1 KiB
Text
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
pkgname=php7-stats
|
|
_pkgreal=stats
|
|
pkgver=2.0.3
|
|
pkgrel=4
|
|
pkgdesc="Extension that provides few dozens routines for statistical computation."
|
|
url="http://pecl.php.net/package/$_pkgreal"
|
|
arch="all"
|
|
license="PHP"
|
|
depends=""
|
|
makedepends="php7-dev autoconf"
|
|
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
|
|
builddir="$srcdir"/$_pkgreal-$pkgver
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
phpize7
|
|
./configure --prefix=/usr --with-php-config=php-config7
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
case "$CARCH" in
|
|
# Remove test fail https://bugs.php.net/bug.php?id=76163
|
|
aarch64 | ppc64le) rm tests/stats_stat_correlation.phpt
|
|
esac
|
|
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make INSTALL_ROOT="$pkgdir"/ install
|
|
install -d "$pkgdir"/etc/php7/conf.d
|
|
echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/60_$_pkgreal.ini
|
|
}
|
|
|
|
sha512sums="68a21296f8892c399d961bc1bba31cb6ebf6e0533fd396fc8527a33aa0b7cc189e718bd22dddbaaaeda183488971f02e87b2d9514085cc2a3d0fc558921a584c stats-2.0.3.tgz"
|