mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 08:51:25 +02:00
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
# Contributor: Andy Postnikov <apostnikov@gmail.com>
|
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=php7-varnish
|
|
_pkgreal=varnish
|
|
pkgver=1.2.4
|
|
pkgrel=1
|
|
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"
|
|
|
|
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"
|