summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickaël Thomas2016-04-21 01:34:39 +0200
committerMickaël Thomas2016-04-21 01:34:39 +0200
commit33703fa4c62ed7762d98a32af93878bafc5851c1 (patch)
tree0c98f4d68c961528105729e72527e19176eacb47
parent18030a42aae6bd7e81d2cab9e4324d16c179c27b (diff)
downloadaur-33703fa4c62ed7762d98a32af93878bafc5851c1.tar.gz
Add php56-dblib to the package
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD12
2 files changed, 17 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8facf8a8775..508ad354dbe 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Fri Apr 1 18:46:22 UTC 2016
+# Wed Apr 20 23:34:16 UTC 2016
pkgbase = php56
pkgdesc = A general-purpose scripting language that is especially suited to web development
pkgver = 5.6.20
@@ -89,6 +89,11 @@ pkgname = php56-phpdbg
depends = php56
provides = php-phpdbg=5.6.20
+pkgname = php56-dblib
+ pkgdesc = dblib module for PHP
+ depends = php56
+ provides = php-dblib=5.6.20
+
pkgname = php56-pear
pkgdesc = PHP Extension and Application Repository
depends = php56
diff --git a/PKGBUILD b/PKGBUILD
index cbeff68ec46..a7273cda1ed 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,6 +14,7 @@ pkgname=("${pkgbase}"
"${pkgbase}-fpm"
"${pkgbase}-embed"
"${pkgbase}-phpdbg"
+ "${pkgbase}-dblib"
"${pkgbase}-pear"
"${pkgbase}-enchant"
"${pkgbase}-gd"
@@ -132,6 +133,7 @@ build() {
--with-mysqli=shared,mysqlnd \
--with-openssl=shared \
--with-pcre-regex=/usr \
+ --with-pdo-dblib=shared,/usr \
--with-pdo-mysql=shared,mysqlnd \
--with-pdo-odbc=shared,unixODBC,/usr \
--with-pdo-pgsql=shared \
@@ -243,7 +245,7 @@ package_php56() {
# remove static modules
rm -f ${pkgdir}/usr/lib/${pkgbase}/modules/*.a
# remove modules provided by sub packages
- rm -f ${pkgdir}/usr/lib/${pkgbase}/modules/{enchant,gd,imap,intl,ldap,mcrypt,mssql,odbc,pdo_odbc,pgsql,pdo_pgsql,pspell,snmp,sqlite3,pdo_sqlite,tidy,xsl}.so
+ rm -f ${pkgdir}/usr/lib/${pkgbase}/modules/{enchant,gd,imap,intl,ldap,mcrypt,mssql,odbc,pdo_odbc,pgsql,pdo_pgsql,pspell,snmp,sqlite3,pdo_sqlite,tidy,xsl,pdo_dblib}.so
# remove empty directory
rmdir ${pkgdir}/usr/include/php/include
@@ -328,6 +330,14 @@ package_php56-phpdbg() {
install -D -m755 ${srcdir}/build-phpdbg/sapi/phpdbg/phpdbg ${pkgdir}/usr/bin/${pkgbase}dbg
}
+package_php56-dblib() {
+ pkgdesc='dblib module for PHP'
+ depends=("${pkgbase}")
+ provides=("${_pkgbase}-dblib=$pkgver")
+
+ install -D -m755 ${srcdir}/build-php/modules/pdo_dblib.so ${pkgdir}/usr/lib/php/modules/pdo_dblib.so
+}
+
package_php56-pear() {
pkgdesc='PHP Extension and Application Repository'
depends=("${pkgbase}")