updated on Fri Jan 13 12:00:28 UTC 2012
[aur-mirror.git] / qore-mysql-module / PKGBUILD
blob4b704bc4804ef34afd58b476594615cdd595bdba
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-mysql-module
8 pkgver=1.0.8
9 pkgrel=1
10 epoch=
11 pkgdesc="The mysql module for Qore provides a database driver for MySQL databases."
12 arch=("i686" "x86_64")
13 url="http://www.qore.org/"
14 license=('GPL2', "LGPL2")
15 groups=()
16 depends=("libmysqlclient")
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-mysql/1.0.8/qore-mysql-module-1.0.8.tar.gz" "configure.patch")
28 noextract=()
30 md5sums=('15eb546e444617d738eafdbb6d6d5bde'
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: