1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
5 pkgdesc="C++ multi-purpose reflection library"
7 url="http://dev.tegesoft.com/projects/camp/"
10 makedepends=('cmake' 'git')
11 optdepends=('doxyen: generate API docs')
15 _gitroot="git://github.com/tegesoft/camp.git"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34 cd "${srcdir}/${_gitname}-build"
36 [[ -d build ]] && rm -r build
37 mkdir build && cd build
38 cmake .. -DCMAKE_INSTALL_PREFIX=/usr
40 # Check for optdepends and then attemt to generate docs
41 if [[ $(which doxygen) ]]; then
44 warning "doxygen not found, not making documentation"
49 cd "${srcdir}/${_gitname}-build"
52 make DESTDIR="${pkgdir}/" install
55 # vim:set ts=2 sw=2 et: