blob: 591111ec6518a7fa6b972e087609ae73f963ab09 (
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
|
# Maintainer: Luke Arms <luke@arms.to>
pkgname=php-ibm_db2
_extname=${pkgname#php-}
pkgver=2.1.7
pkgrel=1
pkgdesc='Extension for IBM DB2 Universal Database, IBM Cloudscape, and Apache Derby'
arch=('x86_64')
url='https://github.com/php/pecl-database-ibm_db2'
license=('Apache')
depends=('php' 'db2-odbc-cli')
source=("http://pecl.php.net/get/${_extname}-${pkgver}.tgz")
sha256sums=('e5622a71dc3f5c555be558a2f835e80c51f485f2e9fcbb894627c300eb11b310')
backup=("etc/php/conf.d/$_extname.ini")
build() {
cd "$srcdir/$_extname-$pkgver"
phpize
./configure --prefix=/usr --with-IBM_DB2=/opt/db2-odbc-cli
make
}
package() {
cd "$srcdir/$_extname-$pkgver"
make INSTALL_ROOT="$pkgdir" install
echo "extension=$_extname.so" >"$srcdir/$_extname.ini"
install -Dm0644 "$srcdir/$_extname.ini" "$pkgdir/etc/php/conf.d/$_extname.ini"
install -Dm0644 "$srcdir/$_extname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|