aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-05-05 15:28:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-05-05 15:43:07 +0000
commita35f957f8394db40f71903db44cfe6f380e71b20 (patch)
treef176d2b585f4d84e2a732cc46802c42085552394
parentbcce80771c9d997f5a18595905c5945667d4cb94 (diff)
downloadaports-a35f957f8394db40f71903db44cfe6f380e71b20.tar.bz2
aports-a35f957f8394db40f71903db44cfe6f380e71b20.tar.xz
main/xapian-bindings: rebuild with renamed php5
-rw-r--r--main/xapian-bindings/APKBUILD13
1 files changed, 7 insertions, 6 deletions
diff --git a/main/xapian-bindings/APKBUILD b/main/xapian-bindings/APKBUILD
index 69d9a531d6..cc522f983d 100644
--- a/main/xapian-bindings/APKBUILD
+++ b/main/xapian-bindings/APKBUILD
@@ -1,15 +1,16 @@
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+_php=php5
pkgname=xapian-bindings
pkgver=1.2.23
-pkgrel=0
+pkgrel=1
pkgdesc="Binding libraries for xapian"
url="http://www.xapian.org"
arch="all"
license="GPL2+"
depends=""
depends_dev="bash xapian-core-dev perl-dev lua5.2-dev
- php-dev php-cli python-dev ruby-dev ruby tcl-dev"
+ ${_php}-dev ${_php}-cli python-dev ruby-dev ruby tcl-dev"
makedepends="$depends_dev automake autoconf libtool"
install=""
subpackages="$pkgname-perl $pkgname-lua $pkgname-php $pkgname-doc
@@ -70,11 +71,11 @@ php() {
arch="all"
pkgdesc="PHP bindings for the Xapian search engine library"
install -d "$subpkgdir"/usr/share/php5 \
- "$subpkgdir"/usr/lib/php/modules \
- "$subpkgdir"/etc/php/conf.d || return 1
- echo ';extension=xapian.so' > "$subpkgdir/etc/php/conf.d/xapian.ini" \
+ "$subpkgdir"/usr/lib/$_php/modules \
+ "$subpkgdir"/etc/$_php/conf.d || return 1
+ echo ';extension=xapian.so' > "$subpkgdir/etc/$_php/conf.d/xapian.ini" \
|| return 1
- mv "$pkgdir"/usr/lib/php/modules/* "$subpkgdir"/usr/lib/php/modules/
+ mv "$pkgdir"/usr/lib/$_php/modules/* "$subpkgdir"/usr/lib/$_php/modules/
mv "$pkgdir"/usr/share/php5 "$subpkgdir"/usr/share/
}