summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 909a995ca54390be6534b9d73941d037d6880e62 (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
# Maintainer: nepda <aur@nepda.eu>
pkgname="php-pdo-firebird"
pkgver=7.4.5
pkgrel=1
pkgdesc="Firebird PHP PDO extension"
arch=("i686" "x86_64")
url="http://www.php.net"
license=("PHP")
depends=("php>=7.4.5" "libfbclient")
source=("http://www.php.net/distributions/php-${pkgver}.tar.bz2"
        "pdo_firebird.ini")
md5sums=("8f5b5c83421674364e3a5fb1f1fd37ac"
         "4a23b02aaa079d4419dad09b41b1f3a2")

build() {
	cd ${srcdir}/php-${pkgver}/ext/pdo_firebird
	phpize
	./configure --with-pdo-firebird=/opt/firebird
	make
}

package() {
	mkdir -p "$pkgdir"/{/usr/lib/php/modules,/etc/php/conf.d}
	install -m755 "$srcdir/php-$pkgver/ext/pdo_firebird/.libs/pdo_firebird.so" "$pkgdir/usr/lib/php/modules"
	install -m644 "$srcdir/pdo_firebird.ini" "$pkgdir/etc/php/conf.d"
}