1 # Maintainer: Thomas Gatzweiler <thomas.gatzweiler at gmail com>
5 pkgdesc="A simple tetris clone."
7 url="http://github.com/7h0ma5/ttris/"
10 makedepends=('cmake>=2.8', 'git')
12 _gitroot="git://github.com/7h0ma5/ttris.git"
18 msg "Connecting to GIT server...."
20 if [ -d $_gitname ] ; then
21 cd "$_gitname" && git pull origin
22 msg "The local files are updated."
24 git clone $_gitroot $_gitname
27 cd "${srcdir}/${_gitname}"
28 mkdir -p build && cd build
29 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
34 cd "${srcdir}/${_gitname}/build"
35 make DESTDIR="${pkgdir}" install