blob: 4cc040e13db3da73a815c35f03b39c2550cdc0b0 (
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
|
# Maintainer: Stefan Auditor <stefan@auditor.email>
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: 吕海涛 <aur@lvht.net>
_pkgname=rdkafka
pkgname=php-${_pkgname}
pkgver=6.0.3
pkgrel=1
pkgdesc="AProduction-ready, stable Kafka client for PHP"
arch=("i686" "x86_64")
url="https://github.com/arnaud-lb/php-rdkafka"
license=('MIT')
depends=('php' 'librdkafka')
source=("${_pkgname}::git+https://github.com/arnaud-lb/php-rdkafka")
backup=("etc/php/conf.d/${_pkgname}.ini")
md5sums=('SKIP')
build() {
cd "${srcdir}/${_pkgname}"
phpize
./configure
make all -j 5
}
package() {
cd "${srcdir}/${_pkgname}"
echo ";extension=${_pkgname}.so" > ${_pkgname}.ini
install -Dm644 ${_pkgname}.ini "${pkgdir}/etc/php/conf.d/${_pkgname}.ini"
make install INSTALL_ROOT="${pkgdir}/"
}
|