contrib/php-redis/Pkgfile

28 lines
698 B
Plaintext
Raw Normal View History

# Description: A PHP extension for Redis
# URL: https://github.com/phpredis/phpredis
# Maintainer: Tim Biermann, tbier at posteo dot de
2022-01-22 12:21:36 +01:00
# Depends on: liblzf php-igbinary
# Optional: redis
name=php-redis
2023-10-23 07:39:24 +02:00
version=6.0.2
2024-01-20 18:41:35 +01:00
release=2
2023-09-09 21:53:57 +02:00
source=(https://github.com/phpredis/phpredis/archive/refs/tags/$version.tar.gz)
renames=($name-$version.tar.gz)
build() {
cd phpredis-$version
2023-09-09 21:53:57 +02:00
echo -e "; this extension requires igbinary to be activated as well\n;extension=redis" > "redis.ini"
phpize
2023-09-09 21:53:57 +02:00
./configure --prefix=/usr \
--enable-redis-igbinary \
--enable-redis-lzf \
--with-liblzf=/usr/lib/
make
make INSTALL_ROOT=$PKG/ install
2023-09-09 21:53:57 +02:00
install -vDm 644 redis.ini -t $PKG/etc/php/conf.d/
}