summaryrefslogtreecommitdiff
path: root/community/projectm/PKGBUILD
blob: 122eb7e51a132543030461b932e6ae6208a43ed5 (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
32
33
34
# $Id: PKGBUILD 66284 2012-02-23 10:51:41Z giovanni $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Alexander Baldeck <alexander@archlinux.org>

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

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

  patch -Np1 -i "${srcdir}/libprojectM-2.0.1-pkg-config.patch"
  patch -Np1 -i "${srcdir}/libprojectM-2.0.1-fix-linking.patch"

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

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