1 # Contributor: Prurigro
4 pkgname=compiz-fusion-plugin-anaglyph
7 pkgdesc="Compiz plugin providing 3D effects with red/blue glasses"
9 url="http://kowalczyk.ws/anaglyph/"
11 source=(http://kowalczyk.ws/anaglyph/anaglyph_$pkgver.tar.gz)
12 md5sums=('dbbd3b2261599f02dcbec56538de1aa6')
14 # This sets the depends based on whether you have compiz-core or compiz-git installed
15 if [ ! -f /usr/bin/compiz ]; then
16 echo -n "Please install either 'compiz-core' or 'compiz-git' and try again" && return 1
17 elif [ $(pacman -Qo /usr/bin/compiz | grep -c compiz-core) = 1 ]; then
18 depends=('compiz-core' 'compiz-bcop' 'compiz-fusion-plugins-main')
19 elif [ $(pacman -Qo /usr/bin/compiz | grep -c compiz-git) = 1 ]; then
20 depends=('compiz-git' 'compiz-bcop-git' 'compiz-fusion-plugins-main-git')
24 pushd ${startdir}/src/anaglyph || return 1
26 install -d ${pkgdir}/usr/lib/compiz || return 1
27 install -d ${pkgdir}/usr/share/compiz || return 1
28 install -D -m755 build/.libs/libanaglyph.so.0.0.0 ${pkgdir}/usr/lib/compiz/libanaglyph.so.0.0.0 || return 1
29 ln -s libanaglyph.so.0.0.0 ${pkgdir}/usr/lib/compiz/libanaglyph.so.0 || return 1
30 ln -s libanaglyph.so.0.0.0 ${pkgdir}/usr/lib/compiz/libanaglyph.so || return 1
31 install -D -m644 build/anaglyph.xml ${pkgdir}/usr/share/compiz/anaglyph.xml || return 1