updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / tictactoe-git / PKGBUILD
blob1df0a0d477e66688f30aa849aed7d29bf5ad481c
1 # Contributor: Richard Kakaš <richard.kakas@gmail.com>
3 pkgname=tictactoe-git
4 pkgver=20100503
5 pkgrel=1
6 pkgdesc="Simple TicTacToe game made in Qt."
7 arch=('i686' 'x86_64')
8 url="https://sourceforge.net/projects/tictactoe-qt/"
9 license=('GPL')
11 depends=('qt')
12 makedepends=('cmake' 'git')
13 provide=('tictactoe')
14 conflicts=('tictactoe')
16 install=("tictactoe-git.install")
18 _gitroot="git://tictactoe-qt.git.sourceforge.net/gitroot/tictactoe-qt/tictactoe-qt"
19 _gitname="tictactoe"
21 build() {
22         # update/download git files
23         cd ${srcdir}/
24     msg "Connecting to the GIT server...."
25     if [[ -d ${srcdir}/${_gitname} ]] ; then
26         cd ${_gitname}/
27         git pull origin
28         msg "The local files are updated..."
29     else
30         git clone ${_gitroot} ${_gitname}
31     fi
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
41         make all || return 1
42         make DESTDIR="${pkgdir}" install || return 1
43     msg "Build done."