mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-11 23:24:17 +02:00
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
# Contributor: TBK <alpine@jjtc.eu>
|
|
# Maintainer: TBK <alpine@jjtc.eu>
|
|
pkgname=php81-pecl-protobuf
|
|
_extname=protobuf
|
|
pkgver=4.30.0
|
|
pkgrel=0
|
|
pkgdesc="PHP 8.1 extension: Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data - PECL"
|
|
url="https://pecl.php.net/package/protobuf"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
_phpv=81
|
|
_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"
|
|
|
|
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
|
|
"
|