summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e7d608782e75b287c6a5aecce27593c8d188320 (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
_phpbase=83
pkgname=php83-redis
pkgver=6.1.0
pkgrel=1
pkgdesc="PHP extension for interfacing with Redis"
url="http://pecl.php.net/package/redis"
arch=('x86_64')
license=('PHP')
makedepends=("php${_phpbase}" "liblzf")
depends=("php${_phpbase}" "liblzf")
backup=("etc/php${_phpbase}/conf.d/40-redis.ini")
source=(
    http://pecl.php.net/get/redis-${pkgver}.tgz
)
build() {
  cd "$srcdir/redis-$pkgver"
  phpize${_phpbase}
  ./configure --prefix=/usr \
    --enable-redis-lzf \
    --with-liblzf=/usr/lib/ \
    --with-php-config=php-config${_phpbase}
  make
}

package() {
  cd "$srcdir/redis-$pkgver"
  make INSTALL_ROOT="$pkgdir" install
  echo 'extension=redis.so' > redis.ini
  install -Dm644 redis.ini "$pkgdir/etc/php${_phpbase}/conf.d/40-redis.ini"
  rm redis.ini
}

sha256sums=('f10405f639fe415e9ed4ec99538e72c90694d8dbd62868edcfcd6a453466b48c')