1 # Contributor: Prurigro
4 pkgname=compiz-fusion-plugin-anaglyph-git
7 pkgdesc="Compiz-fusion Anaglyph plugin - Three dimensional effects in combination with 3D glasses"
9 url="http://gitweb.opencompositing.org/?p=users/wodor/anaglyph"
11 makedepends=('git' 'intltool' 'pkgconfig' 'gettext')
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"
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"
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
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
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