updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / qore / PKGBUILD
blob5707f6046821f8f4592155d2447453a84e9e4255
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
8 pkgver=0.8.3
9 pkgrel=2
10 epoch=
11 pkgdesc="Qore is a high-level, general-purpose, interpreted, dynamic programming language."
12 arch=("i686" "x86_64")
13 url="http://www.qore.org/"
14 license=('GPL2', "LGPL2")
15 groups=()
16 depends=("flex" "openssl" "pcre" "bzip2" "zlib")
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/$pkgname/$pkgver/${pkgname}-${pkgver}.tar.bz2" "configure.patch" "QoreLib.cpp.patch")
28 noextract=()
30 md5sums=('972ee75296cc4794cb3a538cdb4a3c1d'
31          '2d531930acb4a5b69c1f88ae062e9b19'
32          'e652c14baba41729c94fe74d79968c16')
34 build() {
35   cd "$srcdir/$pkgname-$pkgver"
37   _CONFIGURE_OPTS="--prefix=/usr --disable-static --disable-debug"
38   [ "$CARCH" = "x86_64" ] && _CONFIGURE_OPTS="$_CONFIGURE_OPTS --enable-64bit"
40   cp ../../configure.patch .
41   cp ../../QoreLib.cpp.patch lib/
43   patch < configure.patch
44   cd lib && patch < QoreLib.cpp.patch
45   cd ../
47   echo "./configure $_CONFIGURE_OPTS"
48   ./configure $_CONFIGURE_OPTS
49   make
52 check() {
53   cd "$srcdir/$pkgname-$pkgver"
54   make -k check
57 package() {
58   cd "$srcdir/$pkgname-$pkgver"
59   make DESTDIR="$pkgdir/" install
62 # vim:set ts=2 sw=2 et: