updated on Tue Jan 17 08:05:08 UTC 2012
[aur-mirror.git] / tribe-git / PKGBUILD
blobe348feacf44f4b0008fb275baaa1a62693de7dd9
1 # Maintainer: Gadget3000 <gadget3000 at msn dot com>
2 # Contributor: Marc Hudson <marxom@gmail.com>
4 pkgname=tribe-git
5 pkgver=20110904
6 pkgrel=1
7 pkgdesc="Tribe - Chakra LiveCD Installer"
8 arch=('i686' 'x86_64')
9 url="http://chakra-project.org/"
10 license=('GPL')
11 depends=('qt>=4.4.0' 'kdelibs' 'kdebase-workspace' 'polkit-qt' 'kdeedu-marble' 'arxin' 'rsync' 'parted' 'aqpm' 'e2fsprogs')
12 makedepends=('cmake' 'git')
13 provides=('tribe')
14 conflicts=('tribe')
15 groups=()
16 source=()
17 md5sums=()
19 _gitroot="git://gitorious.org/chakra/tribe.git"
20 _gitname="tribe"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [[ -d "$_gitname" ]]; then
27     cd "$_gitname" && git pull origin
28     msg "The local files are updated."
29   else
30     git clone "$_gitroot" "$_gitname"
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting build..."
36   rm -rf "$srcdir/$_gitname-build"
37   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38   cd "$srcdir/$_gitname-build"
40   #
41   # BUILD HERE
42   #
44   cmake . -DCMAKE_INSTALL_PREFIX=/usr
45   make || return 1
48 package() {
49   cd "$srcdir/$_gitname-build"
50   make DESTDIR="$pkgdir" install