updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / juce / PKGBUILD
blob33637fd87a8b1d86217ba61e3a7742b1deb0cf36
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Prashant Vaibhav <mercurysquad@googlemail.com>
4 pkgname=juce
5 pkgver=1.53
6 pkgrel=1
7 pkgdesc="Jules Utility Class Extensions is an all-encompassing C++ class library for developing cross-platform applications."
8 arch=('i686' 'x86_64')
9 url="http://www.rawmaterialsoftware.com/juce/"
10 license=('GPL')
11 depends=('mesa' 'libxinerama' 'freetype2' 'pth' 'alsa-lib')
12 source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}_${pkgver/./_}.zip")
13 md5sums=('bbd57c8c788a5e427f723ee810510e23')
15 build() {
16   cd "$srcdir/$pkgname/Builds/Linux"
18   make CONFIG=Release
20   # demo
21   cd "../../extras/JuceDemo/Builds/Linux"
23   make CONFIG=Release
26 package() {
27   cd "$srcdir/$pkgname"
29   # prepare dirs
30   install -d "$pkgdir"/usr/{lib,bin,{share/doc,include}/$pkgname}
32   # static lib
33   install -Dm644 bin/libjuce.a "$pkgdir/usr/lib/libjuce.a"
35   # headers
36   install -Dm644 *.{h,cpp} "$pkgdir/usr/include/$pkgname"
38   # demo
39   install -Dm755 "extras/JuceDemo/Builds/Linux/build/JuceDemo" "$pkgdir/usr/bin"
41   # docs
42   cp -a docs/* "$pkgdir/usr/share/doc/$pkgname"