diff options
author | Andy Postnikov <apostnikov@gmail.com> | 2019-03-27 15:55:11 +0200 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2019-04-19 02:17:17 +0300 |
commit | ea2dee22e6498195178bbc26ad136c6e5b954e63 (patch) | |
tree | 8f5df5b29a95798ddf46581599036b523828cedf /testing/php7-pecl-varnish | |
parent | 45db28e7b3de74801e7e832fb0421911bd61ff64 (diff) | |
download | aports-ea2dee22e6498195178bbc26ad136c6e5b954e63.tar.bz2 aports-ea2dee22e6498195178bbc26ad136c6e5b954e63.tar.xz |
testing/php7-pecl-varnish: moved from testing/php7-varnish
Diffstat (limited to 'testing/php7-pecl-varnish')
-rw-r--r-- | testing/php7-pecl-varnish/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/php7-pecl-varnish/APKBUILD b/testing/php7-pecl-varnish/APKBUILD new file mode 100644 index 0000000000..ad3e51fe07 --- /dev/null +++ b/testing/php7-pecl-varnish/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Andy Postnikov <apostnikov@gmail.com> +# Maintainer: Andy Postnikov <apostnikov@gmail.com> +pkgname=php7-pecl-varnish +_pkgreal=varnish +pkgver=1.2.4 +pkgrel=2 +pkgdesc="PHP7 extension: makes it possible to interact with a running varnish instance through TCP socket or shared memory." +url="https://pecl.php.net/package/varnish" +arch="all" +license="BSD-3-Clause" +depends="php7-common" +makedepends="php7-dev autoconf libtool varnish-dev" +source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz" +builddir="$srcdir/$_pkgreal-$pkgver" +provides="php7-varnish=$pkgver-r$pkgrel" # for backward compatibility +replaces="php7-varnish" # for backward compatibility + +build() { + cd "$builddir" + phpize7 + ./configure --prefix=/usr --with-php-config=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="23c39c432bdd7c932c8096ed7946300d08fd33b6d4445e5025dddcdd669ca707e045fad565e4201e46d14f82659ae34b8efe5178d06bf0d11d0755b14eb48fed varnish-1.2.4.tgz" |