updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / compiz-fusion-plugin-anaglyph / PKGBUILD
blob518741f8cafe1be4f8058511eeefe5565ca83f20
1 # Contributor: Prurigro
2 # Maintainer: Prurigro
4 pkgname=compiz-fusion-plugin-anaglyph
5 pkgver=0.2.4
6 pkgrel=1
7 pkgdesc="Compiz plugin providing 3D effects with red/blue glasses"
8 arch=('i686' 'x86_64')
9 url="http://kowalczyk.ws/anaglyph/"
10 license=('GPL')
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')       
23 build() {
24         pushd ${startdir}/src/anaglyph || return 1
25                 make || 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
32         popd