updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cbundle-git / PKGBUILD
blob11e67d445546d36a77d67aaeceb6d5cde39b6b13
1 # Maintainer: Daniele Cocca <jmc@chakra-project.org>
3 _pkgname=cbundle
4 pkgname=cbundle-git
5 pkgver=20111011
6 pkgrel=1
7 pkgdesc="A shared library for using Chakra software bundles."
8 arch=('i686' 'x86_64')
9 url="http://chakra-project.org/"
10 license=('GPL')
11 depends=('squashfs-tools' 'unionfs-fuse' 'sh')
12 makedepends=('qt' 'automoc4' 'kde-workspace')
13 provides=('cbundle')
14 conflicts=('cbundle')
15 replaces=('cbundle')
17 _gitroot="git://gitorious.org/chakra/${_pkgname}.git"
18 _gitname="${_pkgname}"
20 build() {
21   cd "${srcdir}"
22   msg "Connecting to GIT server...."
24   if [ -d "${_gitname}" ] ; then
25     cd "${_gitname}" && git pull origin
26     msg "The local files are updated."
27   else
28     git clone "${_gitroot}" "${_gitname}"
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   rm -rf "${srcdir}/${_gitname}-build"
35   git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
36   cd "${srcdir}/${_gitname}-build"
38   cmake -DCMAKE_INSTALL_PREFIX="$(kde4-config --prefix)" -DCMAKE_BUILD_TYPE=RelWithDebInfo
39   make
42 package() {
43   cd "${srcdir}/${_gitname}-build"
44   make DESTDIR="${pkgdir}" install
47 # vim:set ts=2 sw=2 et: