blob: 8ea220a4fb4a84434293bb352bbbdcfaf8f975ab (
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=74
pkgname=php${_phpversion}-pdo_sqlsrv
pkgver=5.10.1
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}" 'msodbcsql')
source=("https://pecl.php.net/get/pdo_sqlsrv-${pkgver}.tgz")
sha256sums=('c7854196a236bc83508a346f8c6ef1df999bc21eebbd838bdb0513215e0628ad')
backup=("etc/php${_phpversion}/conf.d/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/pdo_sqlsrv.ini"
install -Dm0644 "${srcdir}/pdo_sqlsrv-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|