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="database creation tool for zams"
12 url="http://sourceforge.net/projects/zams/"
15 depends=(qt mysql cabextract sudo)
16 makedepends=('gcc' 'git')
17 optdepends=('zams-git')
18 conflicts=('zams-entry')
19 provides=('zams-entry')
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-entry
42 make && make DESTDIR=${pkgdir} install; FAIL=$?
44 rm -rf ${srcdir}/build