blob: adaa557651a7784234f3e3abdceca536d571ad9a (
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.30.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=('89778b4c1f723f5378a6fbde45e0433292ae8d9a214a7447515bb519e983d6a9')
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"
}
|