# Description: Igbinary is a drop in replacement for the standard php serializer
# URL: https://github.com/igbinary/igbinary
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: php

name=php-igbinary
version=3.2.14
release=1
source=(https://pecl.php.net/get/igbinary-$version.tgz)

build() {
  cd igbinary-$version
  sed 's/extension/;extension/g' -i igbinary.php.ini
  phpize
  ./configure --prefix=/usr \
    --enable-igbinary
  make
  make INSTALL_ROOT=$PKG install
  install -vDm 644 igbinary.php.ini $PKG/etc/php/conf.d/igbinary.ini
}
