updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / libisf-qt-git / PKGBUILD
blobc3217fd9e1301e61a710dc16964d540b5a5d46a9
2 pkgname=libisf-qt-git
3 pkgver=20100530
4 pkgrel=1
5 pkgdesc="A library to encode and decode handwriting data in Microsoft’s Ink Serialized Format (ISF)."
6 arch=('i686' 'x86_64')
7 url="http://www.kmess.org/"
8 license=('GPL')
9 depends=('qt')
10 makedepends=('git' 'kdebase-lib' 'cmake' 'automoc4')
12 _gitroot="git://gitorious.org/kmess/libisf-qt.git"
13 _gitname="libisf-qt"
15 build() {
16  msg "Connecting to GIT server...."
18         [ -d $_gitname ] && {
19                 cd $_gitname
20                 git pull origin
21                 cd ..
23                 msg "Local files have been updated."
24         } || {
25                 git clone $_gitroot
26         }
28         msg "GIT checkout done or server timeout"
30         rm -rf $_gitname-build
31         git clone $_gitname $_gitname-build
32         cd $_gitname-build/
34         msg "Starting make..."
36         cmake . -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
37                 -DCMAKE_BUILD_TYPE=Release 
38         make || return 1
41 package() {
42   cd ${srcdir}/$_gitname-build
43   make DESTDIR=${pkgdir} install
44