diff options
author | Matt Harrison | 2020-01-03 09:48:02 -0500 |
---|---|---|
committer | Matt Harrison | 2020-01-03 09:48:02 -0500 |
commit | 0dd9791458e4e8bcf153d72a503219449f45d790 (patch) | |
tree | 6effefabf9a03c32632c3e057805ca1cce5bf5f2 | |
download | aur-0dd9791458e4e8bcf153d72a503219449f45d790.tar.gz |
Initial upload: php73-igbinary 3.1.0-1
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5f3bf312accd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = php73-igbinary + pkgdesc = A drop in replacement for the standard php serializer (PHP 7.3) + pkgver = 3.1.0 + pkgrel = 1 + url = https://github.com/igbinary/igbinary + arch = x86_64 + license = BSD + depends = glibc + depends = php73 + backup = etc/php73/conf.d/igbinary.ini + source = php73-igbinary-3.1.0.tar.gz::https://github.com/igbinary/igbinary/archive/3.1.0.tar.gz + sha512sums = 7b20048b2923ebf760b9743cd08aab04b90f02f3e6ddf840e829db9e6c5335cf936a5218b1590b31b1b553e7748e393d3aee83214b83532b722f4590a36f5b38 + +pkgname = php73-igbinary + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9a3c16289b38 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Matt Harrison <matt@harrison.us.com> +# Contributor: David Runge <dvzrv@archlinux.org> + +_name=igbinary +pkgname=php73-igbinary +pkgver=3.1.0 +pkgrel=1 +pkgdesc="A drop in replacement for the standard php serializer (PHP 7.3)" +arch=('x86_64') +url="https://github.com/igbinary/igbinary" +license=('BSD') +depends=('glibc' 'php73') +backup=("etc/php73/conf.d/${_name}.ini") +source=("$pkgname-$pkgver.tar.gz::https://github.com/${_name}/${_name}/archive/${pkgver}.tar.gz") +sha512sums=('7b20048b2923ebf760b9743cd08aab04b90f02f3e6ddf840e829db9e6c5335cf936a5218b1590b31b1b553e7748e393d3aee83214b83532b722f4590a36f5b38') + +prepare() { + mv -v "${_name}-${pkgver}" "$pkgname-$pkgver" + cd "$pkgname-$pkgver" + # disable the extension by default + sed 's/extension/;extension/g' -i "${_name}.php.ini" + phpize73 +} + +build() { + cd "$pkgname-$pkgver" + ./configure --prefix=/usr \ + --enable-igbinary + make +} + +check() { + cd "$pkgname-$pkgver" + NO_INTERACTION=1 make -k test +} + +package() { + cd "$pkgname-$pkgver" + make INSTALL_ROOT="$pkgdir/" install + install -vDm 644 "${_name}.php.ini" "${pkgdir}/etc/php73/conf.d/${_name}.ini" + install -vDm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -vDm 644 {CREDITS,NEWS,README.md} \ + -t "${pkgdir}/usr/share/doc/${pkgname}" +} |