summaryrefslogtreecommitdiff
path: root/community/projectm/PKGBUILD
blob: 68b20f4b990d0b09e81fbb0fbc9fb64fbc2f8940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $Id: PKGBUILD 48148 2011-05-29 00:07:23Z lfleischer $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Alexander Baldeck <alexander@archlinux.org>

pkgname=projectm
pkgver=2.0.1
pkgrel=3
pkgdesc='A music visualizer which uses 3D accelerated iterative image based rendering.'
arch=('i686' 'x86_64' 'mips64el')
url='http://projectm.sourceforge.net/'
license=('LGPL')
depends=('gcc-libs' 'ftgl' 'glew' 'gtkglext')
makedepends=('pkgconfig' 'cmake')
source=("http://downloads.sourceforge.net/${pkgname}/projectM-${pkgver}-Source.tar.gz"
        'libprojectM-2.0.1-pkg-config.patch')
md5sums=('f8bf795878cdbbef54784cf2390b4c89'
         'c271ec8c541eb281f1294287bdbc3488')

build() {
  cd "${srcdir}/projectM-${pkgver}-Source"

  patch -p0 -i ../libprojectM-2.0.1-pkg-config.patch

  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
  make
}

package() {
  cd "${srcdir}/projectM-${pkgver}-Source"
  make DESTDIR="${pkgdir}" install
}