1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/community/php7-pecl-msgpack/APKBUILD
2020-02-29 21:04:47 +02:00

40 lines
1.5 KiB
Text

# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-pecl-msgpack
_pkgreal=msgpack
pkgver=2.1.0
pkgrel=0
pkgdesc="PHP extension provides API for communicating with MessagePack serialization - PECL"
url="https://pecl.php.net/package/msgpack"
arch="all"
license="BSD-3-Clause"
depends="php7-session php7-sockets"
makedepends="php7-dev autoconf re2c"
source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir"/$_pkgreal-$pkgver
provides="php7-msgpack=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-msgpack" # for backward compatibility
build() {
phpize7
./configure --prefix=/usr --with-php-config=php-config7
make
}
check() {
rm -f tests/034.phpt # https://github.com/msgpack/msgpack-php/issues/136
rm -f tests/035.phpt # may fail in a slow environment https://github.com/msgpack/msgpack-php/issues/123
# Tests require session and sockets extensions which are not bundled
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test PHP_TEST_SHARED_EXTENSIONS="
-d extension=/usr/lib/php7/modules/session.so \
-d extension=/usr/lib/php7/modules/sockets.so \
-d extension=modules/$_pkgreal.so"
}
package() {
make INSTALL_ROOT="$pkgdir"/ install
install -d "$pkgdir"/etc/php7/conf.d
echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/50_$_pkgreal.ini
}
sha512sums="e024694076224796b2fb4dbd4473c5ac782951911437d0ee668231a1908f924a3a28dd616c0821929b425ee5ec06ef51f870f15b677171429049f4ae5f7befb7 msgpack-2.1.0.tgz"