diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-01 23:47:32 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-05-02 01:53:18 +0200 |
commit | b4be37d940f7681ce6b027729b23cd0eebd204df (patch) | |
tree | 75d1e38145701ee2fe70fe8f8a1bde8ef9734ec6 /community/php7-xdebug | |
parent | d80b679a7d73b55df0f340da427f67f5c110061c (diff) | |
download | aports-b4be37d940f7681ce6b027729b23cd0eebd204df.tar.bz2 aports-b4be37d940f7681ce6b027729b23cd0eebd204df.tar.xz |
community/php7-xdebug: build only for php7, cleanup and improve abuild
Diffstat (limited to 'community/php7-xdebug')
-rw-r--r-- | community/php7-xdebug/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/php7-xdebug/APKBUILD b/community/php7-xdebug/APKBUILD new file mode 100644 index 0000000000..1aab13a342 --- /dev/null +++ b/community/php7-xdebug/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Andy Postnikov <apostnikov@gmail.com> +# Contributor: Valery Kartel <valery.kartel@gmail.com> +# Contributor: Fabio Ribeiro <fabiorphp@gmail.com> +# Maintainer: Andy Postnikov <apostnikov@gmail.com> +pkgname=php7-xdebug +_pkgname=xdebug +pkgver=2.5.3 +pkgrel=0 +_phpver=${pkgname#php} +_phpver=${_phpver%%-*} +pkgdesc="PHP$_phpver extension that provides functions for function traces and profiling" +url="http://pecl.php.net/package/xdebug" +arch="all" +license="PHP" +depends="php$_phpver-common" +makedepends="php$_phpver-dev autoconf" +source="$pkgname-$pkgver.tgz::http://pecl.php.net/get/$_pkgname-$pkgver.tgz" +options="!check" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + + phpize$_phpver + ./configure --prefix=/usr --with-php-config=php-config$_phpver + make +} + +package() { + local confdir="$pkgdir/etc/php$_phpver/conf.d" + cd "$builddir" + + make INSTALL_ROOT="$pkgdir" install + + mkdir -p "$confdir" + cat > "$confdir"/$_pkgname.ini <<-EOF + ; Uncomment to enable this extension. + ;zend_extension=$_pkgname.so + EOF +} + +sha512sums="b301a5abb92e123bbe2b36f7838b56d370a0f2c0c4d3c350b5014f4b86d31daa66e9bff995eed67a570558f6a72ca46a097266e6ab94c413f1dcb99c0fbd4f22 php7-xdebug-2.5.3.tgz" |