updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / quassel-git-monolithic / PKGBUILD
blob7582c36b9bdf025cf885f98d858870b0e89bb516
1 # Contributor: Teo Mrnjavac <teo.mrnjavac@gmail.com> adopted and extended by Patrick Schwalm <patrick.schwalm@gmx.de>
2 pkgname='quassel-git-monolithic'
3 pkgver=20081215
4 pkgrel=1
5 pkgdesc="A Qt4 IRC client - Monolithic Version"
6 url="http://quassel-irc.org"
7 license='GPL'
8 arch=('i686' 'x86_64')
9 depends=('qt')
10 makedepends=('git')
11 replaces=('quassel')
12 source=()
13 md5sums=()
15 _gitroot="git://git.quassel-irc.org/quassel.git"
16 _gitname="quassel"
18 build() {
19         cd $startdir/src
21         msg "Connecting to the GIT server...."
22         if [ -d $_gitname ]; then
23                 (cd $_gitname && git-pull origin || return 1)
24         else
25                 git clone $_gitroot || return 1
26         fi
28         rm -rf ${_gitname}-build
29         cp -r $_gitname ${_gitname}-build
30         cd ${_gitname}-build
32         msg "Starting build process."
33         cmake . -DCMAKE_INSTALL_PREFIX=/usr -DWANT_QTCLIENT=OFF -DWANT_CORE=OFF -DWANT_MONO=ON || return 1
34         make || return 1
36     make DESTDIR=$startdir/pkg/ install