1 # Contributor: Richard Kakaš <richard.kakas@gmail.com>
6 pkgdesc="Simple TicTacToe game made in Qt."
8 url="https://sourceforge.net/projects/tictactoe-qt/"
12 makedepends=('cmake' 'git')
14 conflicts=('tictactoe')
16 install=("tictactoe-git.install")
18 _gitroot="git://tictactoe-qt.git.sourceforge.net/gitroot/tictactoe-qt/tictactoe-qt"
22 # update/download git files
24 msg "Connecting to the GIT server...."
25 if [[ -d ${srcdir}/${_gitname} ]] ; then
28 msg "The local files are updated..."
30 git clone ${_gitroot} ${_gitname}
32 # checkout of actual/working branch
33 cd ${srcdir}/${_gitname}
34 git checkout new_version
35 msg "GIT checkout done."
37 # building and installing of project
38 msg "Starting building...."
39 cmake -D CMAKE_INSTALL_PREFIX=/usr . || return 1
40 make clean || return 1
42 make DESTDIR="${pkgdir}" install || return 1