updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / speedcrunch-git / PKGBUILD
blobf51fc64da2f189ab545abd6c6c5683c048055b83
1 # Contributor: Timur Antipin < kosmocap (at) gmail.ru >
3 pkgname=speedcrunch-git
4 pkgver=20100304
5 pkgrel=1
6 pkgdesc="A simple but powerful calculator using QT"
7 arch=('i686' 'x86_64')
8 url="http://speedcrunch.org/"
9 license=('GPL2')
10 depends=('qt>=4.3.0')
11 makedepends=('make' 'cmake' 'git')
12 conflicts=('speedcrunch' 'speedcrunch-alpha')
14 _gitroot="git://gitorious.org/speedcrunch/mainline.git"
15 _gitname="mainline"
17 source=()
18 md5sums=()
20 build() {
21   cd ${srcdir}
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."
27   else
28     git clone ${_gitroot}
29   fi
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
39   make || return 1
40   make DESTDIR="${pkgdir}" install || return 1