updated on Wed Jan 11 20:01:35 UTC 2012
[aur-mirror.git] / zcomp-git / PKGBUILD
blob52073cdd4777fbe938e00c54a594700e83d5cad6
1 # Maintainer: alorewotik <paraparapampam@gmail.com>
3 pkgname=zcomp-git
4 pkgver=20110410
5 pkgrel=1
6 pkgdesc="Compiz without WM feature"
7 url="http://git.compiz.org/~tuxmarkv/zcomp/"
8 license=('GPL' 'LGPL' 'MIT')
9 arch=('i686' 'x86_64')
10 depends=('librsvg' 'mesa' 'boost-libs' 'libwnck' 'gconf')
11 makedepends=('git' 'intltool' 'pkgconfig' 'boost' 'cmake')
12 conflicts=('compiz-core-git' 'compiz-core' 'compiz-core++' 'compiz' 'compiz-decorator-gnome' 'compiz--decorator-kde')
13 provides=('compiz-core++' 'compiz-core-git')
14 replaces=('compiz-core++' 'compiz-core-git')
15 source=(compiz-no-gdk_display.patch)
16 md5sums=('28f435200f68b99a2b20c44e202e2040')
17 options=(!libtool !emptydirs)
19 _gitroot="git://anongit.compiz.org/users/tuxmarkv/zcomp"
20 _gitname="zcomp"
22 build() {
23   msg "Connecting to the GIT server...."
25   if [[ -d $srcdir/$_gitname ]] ; then
26     cd $_gitname
27     git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot
31     cp compiz-no-gdk_display.patch $_gitname
32     cd $_gitname
33     patch -Np0 -i compiz-no-gdk_display.patch
34   fi
36   msg "GIT checkout done"
37   msg "Starting make..."
39   [[ -d build ]] || mkdir build
40         cd build
41         env cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCOMPIZ_DESTDIR=$pkgdir
42   make || return 1
43   make install || return 1
44         _cmake_root=$(sed -n 's/CMAKE_ROOT:INTERNAL=//p' CMakeCache.txt)
45         mkdir -p "${pkgdir}${_cmake_root}/Modules"
46   make findcompiz_install || return 1
47   cd ..
48   for _license in COPYING{,.GPL,.LGPL,.MIT} ; do
49     install -D -m644 ${_license} "${pkgdir}/usr/share/licenses/${pkgname}/${_license}"
50   done