diff options
author | Andy Postnikov <apostnikov@gmail.com> | 2018-08-18 13:08:25 +0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-08-28 15:48:12 +0000 |
commit | e45a142ee666f30f2263b7b32819320ef240acb9 (patch) | |
tree | 6f3e188907ab4baee04dfdca92a1835ae74ca341 /community/php7-pecl-igbinary | |
parent | a1bf938a2ce055a534142f21300d4976df768d2c (diff) | |
download | aports-e45a142ee666f30f2263b7b32819320ef240acb9.tar.bz2 aports-e45a142ee666f30f2263b7b32819320ef240acb9.tar.xz |
community/php7-pecl-igbinary: renamed from php7-igbinary, modernize
Diffstat (limited to 'community/php7-pecl-igbinary')
-rw-r--r-- | community/php7-pecl-igbinary/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/community/php7-pecl-igbinary/APKBUILD b/community/php7-pecl-igbinary/APKBUILD new file mode 100644 index 0000000000..fda92970af --- /dev/null +++ b/community/php7-pecl-igbinary/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Andy Postnikov <apostnikov@gmail.com> +# Maintainer: Andy Postnikov <apostnikov@gmail.com> + +pkgname=php7-pecl-igbinary +_pkgreal=igbinary +pkgver=2.0.7 +pkgrel=1 +pkgdesc="Igbinary is a drop in replacement for the standard php serializer" +url="https://pecl.php.net/package/igbinary" +arch="all" +license="BSD-3-Clause" +provides="php7-igbinary=$pkgver-r$pkgrel" # for backward compatibility +replaces="php7-igbinary" # for backward compatibility +makedepends="autoconf php7-dev re2c" +source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgreal-$pkgver.tgz" +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + cd "$builddir" + phpize7 + ./configure \ + --prefix=/usr \ + --with-php-config=/usr/bin/php-config7 + make +} + +check() { + cd "$builddir" + make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test +} + +package() { + cd "$builddir" + make INSTALL_ROOT="$pkgdir" install + install -d "$pkgdir"/etc/php7/conf.d + echo "extension=$_pkgreal.so" > \ + "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini +} + +sha512sums="216a622f8421f4e2140d5ef8250b66b2b536a7de6c236c6f62938ea49abc264c6c23cf0b41dd954bb89a03ff83fc4d6c7209386a2b05bf523f6312a6c16e1f0a php7-pecl-igbinary-2.0.7.tgz" |