blob: 9c140a1647206f6a157fdbe81db6f72966737f06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: Tomasz Gruszka <tompear79@gmail.com>
_phpversion=81
pkgname=php${_phpversion}-pdo_sqlsrv
pkgver=5.12.0
pkgrel=1
pkgdesc="Microsoft SQL Server PDO Drivers for PHP"
arch=('i686' 'x86_64')
url="https://pecl.php.net/package/pdo_sqlsrv"
license=('MIT')
depends=("php${_phpversion}" "php${_phpversion}-pdo" "msodbcsql")
source=("https://pecl.php.net/get/pdo_sqlsrv-${pkgver}.tgz")
sha256sums=('22f0cb17b45f0deccd0bba072ee0085ff4094cd6ee2acc26f7f924975ef652c6')
backup=("etc/php${_phpversion}/conf.d/30-pdo_sqlsrv.ini")
build() {
cd "${srcdir}/pdo_sqlsrv-${pkgver}"
phpize${_phpversion}
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/pdo_sqlsrv-${pkgver}"
make INSTALL_ROOT="${pkgdir}" install
install -dm0755 "${pkgdir}/etc/php${_phpversion}/conf.d"
echo 'extension=pdo_sqlsrv.so' > "${pkgdir}/etc/php${_phpversion}/conf.d/30-pdo_sqlsrv.ini"
install -Dm0644 "${srcdir}/pdo_sqlsrv-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|