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>
10 pkgdesc="zams is a multiple choice training application with focus on the german exams for medical students"
12 url="http://sourceforge.net/projects/zams/"
16 makedepends=('gcc' 'git')
17 optdepends=(zams-conv-git)
21 _gitroot="git://zams.git.sourceforge.net/gitroot/zams/zams"
26 if [ -d ${_gitname} ]; then
27 cd ${_gitname} && git pull origin
28 msg "The local files are updated."
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
42 make && make DESTDIR=${pkgdir} install; FAIL=$?
44 rm -rf ${srcdir}/build