updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / qross-git / PKGBUILD
blob83d52c9e8ea1e00e9504f22762b38665956e4421
1 # Contributor: Artem Sereda <overmind88@gmail.com>
2 pkgname=qross-git
3 pkgver=20101006
4 pkgrel=1
5 pkgdesc="Qt-only fork of Kross, the KDE scripting framework"
6 arch=('i686' 'x86_64')
7 url="http://github.com/0xd34df00d/Qross"
8 license=('GPL')
9 depends=('qt>=4.6.0')
10 makedepends=('git')
11 provides=('qross')
12 conflicts=('qross')
13 source=()
14 md5sums=()
16 _gitroot="http://github.com/0xd34df00d/Qross.git"
17 _gitname="Qross"
19 build() {
20   msg "Connecting to GIT server..."
21   if [[ -d $srcdir/$pkgname-$pkgver ]]; then
22     cd $srcdir/$pkgname-$pkgver && git pull origin || return 1
23   else
24     git clone $_gitroot $srcdir/$pkgname-$pkgver || return 1
25     cd $srcdir/$pkgname-$pkgver/
26   fi
28   msg "GIT checkout done or server timeout"
30   cd $srcdir/$pkgname-$pkgver/src/qross
32   #
33   # BUILD HERE
34   #
36   cmake -DCMAKE_INSTALL_PREFIX=/usr
37   make  || return 1
38   make DESTDIR=$startdir/pkg install
39 }