diff options
-rw-r--r-- | testing/php-pear-mdb2/APKBUILD | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/testing/php-pear-mdb2/APKBUILD b/testing/php-pear-mdb2/APKBUILD index 16c558fd4..06dab5fa3 100644 --- a/testing/php-pear-mdb2/APKBUILD +++ b/testing/php-pear-mdb2/APKBUILD @@ -4,7 +4,7 @@ pkgname=php-pear-mdb2 _pkgname=MDB2 pkgver=2.5.0b3 _driver_ver=1.5.0b3 -pkgrel=0 +pkgrel=1 pkgdesc="PEAR MDB2 Database Abstraction Layer" url="http://pear.php.net/package/MDB2/" arch="noarch" @@ -13,15 +13,20 @@ depends="php-pear" depends_dev= makedepends="$depends_dev php-pear" install="" -subpackages="$pkgname-mysql $pkgname-mysqli $pkgname-pgsql $pkgname-sqlite" +subpackages=" + $pkgname-driver-mysql:driver_mysql + $pkgname-driver-mysqli:driver_mysqli + $pkgname-driver-pgsql:driver_pgsql + $pkgname-driver-sqlite:driver_sqlite + " source="" -build() { return 0; } -package() { _pear_install $_pkgname-$pkgver "$pkgdir" || return 1; } -mysql() { _do_driver mysql "mysql php-mysql" noarch; } -mysqli() { _do_driver mysqli "mysql php-mysqli" noarch; } -pgsql() { _do_driver pgsql "postgresql php-pgsql" noarch; } -sqlite() { _do_driver sqlite "php-sqlite" noarch; } +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-sqlite" noarch; } _pear_install() { |