1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # Maintainer: Boris Shomodjvarac <shomodj@gmail.com>
7 pkgname=qore-pgsql-module
11 pkgdesc="The pgsql module provides a PostgreSQL driver to Qore's DBI system."
12 arch=("i686" "x86_64")
13 url="http://www.qore.org/"
14 license=('GPL2', "LGPL2")
16 depends=("postgresql")
27 source=("http://sourceforge.net/projects/qore/files/module-pgsql/$pkgver/${pkgname}-${pkgver}.tar.gz" "configure.patch")
30 md5sums=('cd076243186f33a0a1074ddb8b17e8d7'
31 'bb68f1ab9532a19ed50bb88ddd7a9dc3')
34 cd "$srcdir/$pkgname-$pkgver"
36 _CONFIGURE_OPTS="--prefix=/usr --disable-static --disable-debug"
37 [ "$CARCH" = "x86_64" ] && _CONFIGURE_OPTS="$_CONFIGURE_OPTS --enable-64bit"
39 cp ../../configure.patch .
40 patch < configure.patch
42 echo "./configure $_CONFIGURE_OPTS"
43 ./configure $_CONFIGURE_OPTS
48 cd "$srcdir/$pkgname-$pkgver"
53 cd "$srcdir/$pkgname-$pkgver"
54 make DESTDIR="$pkgdir/" install
57 # vim:set ts=2 sw=2 et: