updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / quasselcore-git / PKGBUILD
blobf514ba9eca2b66d43fc8b6102d3bd7eb0fa783ea
1 pkgname='quasselcore-git'
2 pkgver=20090318
3 pkgrel=2
4 pkgdesc="A Qt4 IRC client with a separated core - core only"
5 url="http://quassel-irc.org"
6 license=('GPL')
7 arch=('i686' 'x86_64')
8 depends=('qt')
9 makedepends=('git' 'cmake')
10 provides=('quasselcore')
11 conflicts=('quassel')
12 source=('quasselcore.rcscript')
13 md5sums=('d4e8e925e435639df382e222016fcc36')
14 backup=('etc/rc.d/quasselcore')
16 _gitroot="git://git.quassel-irc.org/quassel.git"
17 _gitname="quassel"
19 build() {
20     cd $startdir/src
22     msg "Connecting to the GIT server...."
23     if [ -d $_gitname ]; then
24         (cd $_gitname && git pull origin || return 1)
25     else
26         git clone $_gitroot || return 1
27     fi
29     rm -rf ${_gitname}-build
30     cp -r $_gitname ${_gitname}-build
31     cd ${_gitname}-build
33     msg "Starting build process."
34     cmake -DCMAKE_INSTALL_PREFIX=/usr . -DWANT_CORE=ON -DWANT_MONO=OFF -DWANT_QTCLIENT=OFF -DWITH_DBUS=OFF -DWITH_OXYGEN=OFF -DWITH_PHONON=OFF -DWITH_WEBKIT=OFF || return 1
35     make || return 1
37     make DESTDIR=$startdir/pkg/ install
38     install -D $startdir/quasselcore.rcscript $pkgdir/etc/rc.d/quasselcore