blob: 82736aaec70fa6ab860c387532da8df4b7e29b72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: wolftankk <wolftankk@gmail.com>
pkgname=php-protobuf
pkgver=4.26.1
pkgrel=1
pkgdesc="Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data."
url="https://pecl.php.net/package/protobuf"
arch=('x86_64' 'i686')
license=('BSD-3-Clause')
depends=(
'php'
'protobuf'
)
backup=('etc/php/conf.d/protobuf.ini')
source=(
"http://pecl.php.net/get/protobuf-${pkgver}.tgz"
)
sha256sums=('bedfe568455857a3078e8bcc607b11d48fe9e4c44c2976fea75bdcbea0b10c97')
build() {
cd "$srcdir/protobuf-$pkgver/"
phpize
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/protobuf-$pkgver/"
make INSTALL_ROOT="$pkgdir" install
echo 'extension=protobuf.so' > protobuf.ini
install -Dm644 protobuf.ini "$pkgdir/etc/php/conf.d/protobuf.ini"
}
|