1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 17:25:17 +03:00
aports/community/php83-pecl-protobuf/APKBUILD
2025-03-05 19:30:04 +01:00

40 lines
1.2 KiB
Text

# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=php83-pecl-protobuf
_extname=protobuf
pkgver=4.30.0
pkgrel=0
pkgdesc="PHP 8.3 extension: Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data."
url="https://pecl.php.net/package/protobuf"
arch="all"
license="BSD-3-Clause"
_phpv=83
_php=php$_phpv
depends="$_php-common"
makedepends="$_php-dev"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"
provides="php7-protobuf=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-protobuf" # for backward compatibility
build() {
phpize$_phpv
./configure --prefix=/usr --with-php-config=php-config$_phpv
make
}
check() {
# Test suite is not a part of pecl release.
$_php -d extension=modules/$_extname.so --ri $_extname
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/$_php/conf.d
install -d $_confdir
echo "extension=$_extname" > $_confdir/$_extname.ini
}
sha512sums="
89d15db1c3f0da23a474eb21dca5ccfbca3199d7f7031a7d2537aa28d57fd93fed88292af09c47ce2532aa661557bfd98b769a6cb49c766957729bf20cea3c27 php-pecl-protobuf-4.30.0.tgz
"