mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
45 lines
1.6 KiB
Text
45 lines
1.6 KiB
Text
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
pkgname=php7-pecl-msgpack
|
|
_extname=msgpack
|
|
pkgver=2.2.0_rc2
|
|
_pkgver=${pkgver/_rc/RC}
|
|
pkgrel=0
|
|
pkgdesc="PHP 7 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"
|
|
source="php-pecl-$_extname-$_pkgver.tgz::https://pecl.php.net/get/$_extname-$_pkgver.tgz"
|
|
builddir="$srcdir"/$_extname-$_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 # XFAIL https://github.com/msgpack/msgpack-php/issues/136
|
|
rm -f tests/035.phpt # fails on ppc64le as of slow environment https://github.com/msgpack/msgpack-php/issues/123
|
|
# Tests require session and sockets extensions which are not bundled
|
|
local _depsdir=/usr/lib/php7/modules
|
|
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test PHP_TEST_SHARED_EXTENSIONS="
|
|
-d extension=$_depsdir/session.so \
|
|
-d extension=$_depsdir/sockets.so \
|
|
-d extension=modules/$_extname.so" TESTS=--show-diff
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
local _confdir="$pkgdir"/etc/php7/conf.d
|
|
install -d $_confdir
|
|
echo "extension=$_extname" > $_confdir/50_$_extname.ini
|
|
}
|
|
|
|
sha512sums="
|
|
11b7243e6abb7dc58a02e2289433a292e2b2a3298357e3a14468faa06c7d302c442891cdf944e31b22435b9ce449b2ab632e30c1c5ccdec8f6b6e5033a2cdbef php-pecl-msgpack-2.2.0RC2.tgz
|
|
"
|