updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / zams-git / PKGBUILD
bloba61db9b4afeef65b121517c202ec185eab0554e0
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: Christoph Berliner <caberliner@gmail.com>
7 pkgname=zams-git
8 pkgver=20111015
9 pkgrel=1
10 pkgdesc="zams is a multiple choice training application with focus on the german exams for medical students"
11 arch=(i686 x86_64)
12 url="http://sourceforge.net/projects/zams/"
13 license=('GPLv3')
14 groups=()
15 depends=(qt mysql)
16 makedepends=('gcc' 'git')
17 optdepends=(zams-conv-git)
18 conflicts=('zams')
19 provides=('zams')
21 _gitroot="git://zams.git.sourceforge.net/gitroot/zams/zams"
22 _gitname="zams"
24 build() {
25     FAIL=0
26     if [ -d ${_gitname} ]; then
27         cd ${_gitname} && git pull origin
28         msg "The local files are updated."
29     else
30         git clone ${_gitroot}
31     fi
33     msg "GIT checkout done or server timeout"
34     msg "Starting make..."
36     rm -rf ${srcdir}/build
37     git clone ${srcdir}/${_gitname} ${srcdir}/build
39     cd ${srcdir}/build/zams
41     qmake
42     make && make DESTDIR=${pkgdir} install; FAIL=$?
43     cd ..
44     rm -rf ${srcdir}/build
45     return $FAIL