diff --git a/community/php7-pecl-msgpack/APKBUILD b/community/php7-pecl-msgpack/APKBUILD
index f5177a2ff538602739e632da696da68d1d9ded3e..9669a241a3846120bddf938cbce9c6e9f982879f 100644
--- a/community/php7-pecl-msgpack/APKBUILD
+++ b/community/php7-pecl-msgpack/APKBUILD
@@ -1,18 +1,17 @@
 # Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
 # Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
 pkgname=php7-pecl-msgpack
-_pkgreal=msgpack
-pkgver=2.1.1
+_extname=msgpack
+pkgver=2.1.2
 pkgrel=0
-pkgdesc="PHP extension provides API for communicating with MessagePack serialization - PECL"
+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 autoconf re2c"
-source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz
-	https://github.com/msgpack/msgpack-php/pull/152.patch"
-builddir="$srcdir"/$_pkgreal-$pkgver
+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
 
@@ -23,20 +22,21 @@ build() {
 }
 
 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
+	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=/usr/lib/php7/modules/session.so \
-		-d extension=/usr/lib/php7/modules/sockets.so \
-		-d extension=modules/$_pkgreal.so"
+		-d extension=$_depsdir/session.so \
+		-d extension=$_depsdir/sockets.so \
+		-d extension=modules/$_extname.so" TESTS=--show-diff
 }
 
 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
+	make INSTALL_ROOT="$pkgdir" install
+	local _confdir="$pkgdir"/etc/php7/conf.d
+	install -d $_confdir
+	echo "extension=$_extname" > $_confdir/50_$_extname.ini
 }
 
-sha512sums="dffa21e36ac8bafa076557093e0bca70772e810215900ce0f9c0e0cc6f4f5aac567178c9bb6c5f962bdda11139d03bc9004f85d9e0a58acf181ef8959e953281  msgpack-2.1.1.tgz
-88bbe2b499dc9eb1b28ca3cfc520af60f8b2c306361e20daa5242f61fe8c93825c0bdf75ad52fb35d5d19304b577fbaaaa1d8c044b17de078d4c59fb1731b38b  152.patch"
+sha512sums="adce1ab7e6dba603398a2caa1f318c85748d9f991d8f56aaf7b93417c65146ca77916241549e76ef3bdfece0cf893990221e77c251e6369403740b02ae6bcff7  php-pecl-msgpack-2.1.2.tgz"