# $Id: PKGBUILD 41920 2009-06-08 06:26:12Z eric $ # Maintainer: Alexander Baldeck pkgname=projectm pkgver=1.2.0 pkgrel=1 pkgdesc="A music visualizer which uses 3D accelerated iterative image based rendering" arch=('i686' 'x86_64') url="http://projectm.sourceforge.net/" license=('LGPL') depends=('ftgl' 'glut' 'glew') makedepends=('pkgconfig' 'xproto' 'cmake') source=(http://downloads.sourceforge.net/sourceforge/projectm/libprojectM-$pkgver.tar.bz2) md5sums=('3bb7abb0f2d929780851bad1ca4fd045') build() { cd $srcdir/libprojectM-$pkgver sed -i 's|FTGL/FTGL.h|FTGL/ftgl.h|' Renderer.hpp || return 1 sed -i "s|#include |#include \n#include |" BuiltinParams.cpp || return 1 mkdir build cd build cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release .. || return 1 make || return 1 make DESTDIR=$pkgdir install || return 1 }