updated on Wed Jan 25 00:20:47 UTC 2012
[aur-mirror.git] / qtpanel-git / PKGBUILD
blobc04fdc363211e75a7fd3805fc54c4004891ad149
1 # Maintainer: Mad Fish <MadFishTheOne@gmail.com>
3 pkgname=qtpanel-git
4 pkgver=20111210
5 pkgrel=1
6 pkgdesc="A project to create useful and beautiful panel in Qt"
7 arch=(i686 x86_64)
8 license=('GPL3')
9 url="https://gitorious.org/qtpanel"
10 depends=('qt')
11 makedepends=('cmake' 'git')
12 conflicts=('qtpanel')
13 provides=('qtpanel')
15 _gitroot="git://gitorious.org/qtpanel/qtpanel.git"
16 _gitname="qtpanel"
18 build()
20         cd "${srcdir}"
21         msg "Connecting to GIT server...."
23         if [ -d ${_gitname} ] ; then
24                 cd ${_gitname} && git pull origin
25                 msg "The local files are updated."
26         else
27                 git clone ${_gitroot} ${_gitname}
28         fi
30         msg "GIT checkout done or server timeout"
32         mkdir -p "${srcdir}/${_gitname}-build"
33         cd "${srcdir}/${_gitname}-build"
34         cmake -DCMAKE_BUILD_TYPE=Release "${srcdir}/${_gitname}"
36         msg "Starting make..."
37         make
38         mkdir -p "${pkgdir}/usr/bin"
39         cp qtpanel "${pkgdir}/usr/bin"
40