summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cbc7ae76563b072b5632076f270ae38d2bf8f40e (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
# Maintainer: Sanpi <sanpi+aur@homecomputing.fr>
pkgname=php-pq
pkgver=2.2.2
pkgrel=1
pkgdesc='PostgreSQL client library (libpq) binding'
url='https://github.com/m6w6/ext-pq'
arch=('x86_64')
license=('BSD')
depends=('php' 'php-raphf')
optdepends=('php-json')
replaces=('pecl-pq')
source=("$url/archive/v$pkgver.zip")
sha256sums=('d1ca2e79c966482fedaf5bfed30ec153edb9da5d61e18cec41ed278fa71c56de')

build()
{
    cd "ext-pq-$pkgver"

    phpize
    ./configure
    make
}

package()
{
    cd "ext-pq-$pkgver"

    make INSTALL_ROOT=$pkgdir install
    install -d "$pkgdir/etc/php/conf.d"
    echo ";extension=pq.so" > "$pkgdir/etc/php/conf.d/pq.ini"
}