summaryrefslogtreecommitdiff
path: root/community/projectm/PKGBUILD
blob: 217efe81ed93d3c9624a708156024feda8512db1 (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
35
36
37
38
# $Id: PKGBUILD 75395 2012-08-21 20:06:54Z ebelanger $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Alexander Baldeck <alexander@archlinux.org>

pkgbase=projectm
pkgname=('projectm' 'libvisual-projectm')
pkgver=2.1.0
pkgrel=1
arch=('i686' 'x86_64' 'mips64el')
url='http://projectm.sourceforge.net/'
license=('LGPL')
makedepends=('cmake' 'ftgl' 'glew' 'gtkglext' 'libvisual' 'sdl' 'libxext')
source=("http://downloads.sourceforge.net/${pkgname}/projectM-complete-${pkgver}-Source.tar.gz")
md5sums=('debf30f7ce94ff0102f06fbb0cc4e92b')

build() {
  cd "${srcdir}/projectM-complete-${pkgver}-Source/src"
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DINCLUDE-PROJECTM-QT=OFF \
    -DINCLUDE-PROJECTM-PULSEAUDIO=OFF -DINCLUDE-PROJECTM-TEST=OFF
  make
}

package_projectm() {
  pkgdesc='A music visualizer which uses 3D accelerated iterative image based rendering.'
  depends=('ftgl' 'glew' 'gtkglext')

  cd "${srcdir}/projectM-complete-${pkgver}-Source/src/libprojectM"
  make DESTDIR="${pkgdir}" install
  install -m644 fonts/Vera.ttf "${pkgdir}/usr/share/projectM/fonts/Vera.ttf"
}

package_libvisual-projectm() {
  pkgdesc='ProjectM XMMS plugin.'
  depends=("projectm>=$pkgver" 'libvisual' 'sdl')

  cd "${srcdir}/projectM-complete-${pkgver}-Source/src/projectM-libvisual"
  make DESTDIR="${pkgdir}" install
}