aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/php5-pear-mdb2/APKBUILD (renamed from main/php-pear-mdb2/APKBUILD)15
1 files changed, 8 insertions, 7 deletions
diff --git a/main/php-pear-mdb2/APKBUILD b/main/php5-pear-mdb2/APKBUILD
index e251444f38..6cf66f153a 100644
--- a/main/php-pear-mdb2/APKBUILD
+++ b/main/php5-pear-mdb2/APKBUILD
@@ -1,6 +1,7 @@
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
-pkgname=php-pear-mdb2
+_php=php5
+pkgname=${_php}-pear-mdb2
_pkgname=MDB2
pkgver=2.5.0b5
_driver_ver=1.5.0b4
@@ -9,9 +10,9 @@ pkgdesc="PEAR MDB2 Database Abstraction Layer"
url="http://pear.php.net/package/MDB2/"
arch="noarch"
license="BSD"
-depends="php-pear"
+depends="${_php}-pear"
depends_dev=
-makedepends="$depends_dev php-pear"
+makedepends="$depends_dev ${_php}-pear"
install=""
subpackages="
$pkgname-driver-mysql:driver_mysql
@@ -23,10 +24,10 @@ source=""
build() { return 0; }
package() { _pear_install $_pkgname-$pkgver "$pkgdir" || return 1; }
-driver_mysql() { _do_driver mysql "mysql php-mysql" noarch; }
-driver_mysqli() { _do_driver mysqli "mysql php-mysqli" noarch; }
-driver_pgsql() { _do_driver pgsql "postgresql php-pgsql" noarch; }
-driver_sqlite() { _do_driver sqlite "php-sqlite3" noarch; }
+driver_mysql() { _do_driver mysql "mysql ${_php}-mysql" noarch; }
+driver_mysqli() { _do_driver mysqli "mysql ${_php}-mysqli" noarch; }
+driver_pgsql() { _do_driver pgsql "postgresql ${_php}-pgsql" noarch; }
+driver_sqlite() { _do_driver sqlite "${_php}-sqlite3" noarch; }
_pear_install() {