updated on Fri Jan 13 12:00:28 UTC 2012
[aur-mirror.git] / qore-pgsql-module / PKGBUILD
blobecd653e3bdbe8ef86987b875b8612a635d69ec03
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
8 pkgver=1.0.6
9 pkgrel=1
10 epoch=
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")
15 groups=()
16 depends=("postgresql")
17 makedepends=()
18 checkdepends=()
19 optdepends=()
20 provides=()
21 conflicts=()
22 replaces=()
23 backup=()
24 options=()
25 install=
26 changelog=
27 source=("http://sourceforge.net/projects/qore/files/module-pgsql/$pkgver/${pkgname}-${pkgver}.tar.gz" "configure.patch")
28 noextract=()
30 md5sums=('cd076243186f33a0a1074ddb8b17e8d7'
31          'bb68f1ab9532a19ed50bb88ddd7a9dc3')
33 build() {
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
44   make
47 check() {
48   cd "$srcdir/$pkgname-$pkgver"
49   make -k check
52 package() {
53   cd "$srcdir/$pkgname-$pkgver"
54   make DESTDIR="$pkgdir/" install
57 # vim:set ts=2 sw=2 et: