1 # Contributor: Timur Antipin < kosmocap (at) gmail.ru >
3 pkgname=speedcrunch-git
6 pkgdesc="A simple but powerful calculator using QT"
8 url="http://speedcrunch.org/"
11 makedepends=('make' 'cmake' 'git')
12 conflicts=('speedcrunch' 'speedcrunch-alpha')
14 _gitroot="git://gitorious.org/speedcrunch/mainline.git"
22 msg "Connecting to GIT server...."
24 if [ -d "${srcdir}/${_gitname}" ] ; then
25 cd ${_gitname} && git pull origin
26 msg "The local files are updated."
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "${srcdir}/${_gitname}-build"
35 cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
36 cd "${srcdir}/${_gitname}-build/src"
38 cmake . -DCMAKE_INSTALL_PREFIX=/usr || return 1
40 make DESTDIR="${pkgdir}" install || return 1