updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / compiz-fusion-plugin-anaglyph-git / PKGBUILD
blob63dd0001609267414d77149a57a6d8b84fcd1390
1 # Contributor: Prurigro
2 # Maintainer: Prurigro
4 pkgname=compiz-fusion-plugin-anaglyph-git
5 pkgver=20091017
6 pkgrel=1
7 pkgdesc="Compiz-fusion Anaglyph plugin - Three dimensional effects in combination with 3D glasses"
8 arch=('i686' 'x86_64')
9 url="http://gitweb.opencompositing.org/?p=users/wodor/anaglyph"
10 license=('GPL')
11 makedepends=('git' 'intltool' 'pkgconfig' 'gettext')
12 source=()
13 md5sums=()
15 # This sets the depends based on whether you have compiz-core or compiz-git installed
16 if [ ! -f /usr/bin/compiz ]; then
17         echo -n "Please install either 'compiz-core' or 'compiz-git' and try again"
18         return 1
19 elif [ $(pacman -Qo /usr/bin/compiz | grep -c compiz-core) = 1 ]; then
20         depends=('compiz-core' 'compiz-bcop' 'compiz-fusion-plugins-main')
21 elif [ $(pacman -Qo /usr/bin/compiz | grep -c compiz-git) = 1 ]; then
22         depends=('compiz-git' 'compiz-bcop-git' 'compiz-fusion-plugins-main-git')       
25 _gitroot="git://anongit.compiz-fusion.org/users/wodor/anaglyph"
26 _gitname="anaglyph"
28 build() {
29         rm -rf "$startdir"/src || return 1
30         install -d "$startdir"/src || return 1
32         echo "Connecting to opencompositing.org GIT server...." || return 1
34         pushd "$startdir"/src || return 1
35                 git clone $_gitroot || return 1
36         popd || return 1
38         echo "GIT checkout done" || return 1
39         echo "Starting make..." || return 1
41         install -d "$startdir"/src/$_gitname-build || return 1
42         install -D -m644 "$startdir"/src/$_gitname/* "$startdir"/src/$_gitname-build || return 1
44         pushd "$startdir"/src/$_gitname-build || return 1
45                 make || return 1
46                 make DESTDIR="$startdir"/pkg/usr/lib/compiz install || return 1
47                 install -d "$startdir"/pkg/usr/share/compiz || return 1
48                 install -D $_gitname.xml.in ${startdir}/pkg/usr/share/compiz/$_gitname.xml || return 1
49         popd