blob: 15b75b45d8ef164f84b29884a83c53fa9fdc4cad (
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
31
32
33
34
|
# Maintainer: Tomasz Gruszka <tompear79@gmail.com>
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
pkgname=php-sqlsrv
_extname=${pkgname#php-}
pkgver=5.12.0
_pkgver=${pkgver}
pkgrel=1
pkgdesc="Microsoft SQL Server Drivers for PHP."
arch=('i686' 'x86_64')
url="https://pecl.php.net/package/$_extname"
license=('MIT')
depends=('php' 'msodbcsql')
source=("https://pecl.php.net/get/$_extname-${_pkgver}.tgz")
sha256sums=('a9ebb880b2a558d3d6684f6e6802c53c5bffa49e1ee60d1473a7124fc9cb72ad')
backup=("etc/php/conf.d/$_extname.ini")
build() {
cd "$srcdir"/$_extname-$_pkgver
phpize
./configure --prefix=/usr
make
}
package() {
cd "$srcdir"/$_extname-$_pkgver
make INSTALL_ROOT="$pkgdir" install
cd "$pkgdir"
install -dm0755 etc/php/conf.d/
echo -e "extension=$_extname.so" > etc/php/conf.d/$_extname.ini
install -Dm0644 "$srcdir"/$_extname-$_pkgver/LICENSE usr/share/licenses/$pkgname/LICENSE
}
|