updated on Thu Jan 12 00:00:55 UTC 2012
[aur-mirror.git] / cm / PKGBUILD
blob80a6da2afcb7dbabb69e67e30c6c6ce9f1ac5329
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=cm
4 pkgver=3.7.2
5 pkgrel=2
6 pkgdesc="Common Music is a real-time music composition system implemented in C++ and Scheme"
7 arch=(i686 x86_64)
8 url="http://commonmusic.sourceforge.net/"
9 license=('GPL')
10 depends=('sndlib' 'mesa' 'freetype2' 'liblo' 'libxinerama')
11 makedepends=('premake')
12 provides=('cm-grace')
13 conflicts=('cm-grace-bin')
14 install="$pkgname.install"
15 source=("http://downloads.sourceforge.net/project/commonmusic/$pkgname/$pkgver/$pkgname-$pkgver.zip"
16         "http://commonmusic.sourceforge.net/index_files/cmlogobb.png"
17         "cm-grace.desktop")
18 md5sums=('71d8af0dd3f4a62144692252403f79b4'
19          '94071a8ecb77bc895cd0abe642d1bed7'
20          '98b16cd7c87fb524e882fa1679b7dfb5')
22 build() {
23   cd "$srcdir/$pkgname"
25   # prevent segfaults
26   unset CFLAGS CXXFLAGS
28   # linking errors with -Wl,--as-needed
29   export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
31   # fix native jack callback
32   sed "s|t\* status|&, ...|" -i src/juce_amalgamated.cpp
34   # configure
35   premake --verbose \
36           --os linux \
37           --target gnu \
38           --sndlib /usr \
39           --liblo /usr
41   # build
42   make CONFIG=Debug
45 package() {
46   cd "$srcdir/$pkgname"
48   # cm bin
49   install -Dm755 bin/cm "$pkgdir/usr/bin/cm"
51   # grace bin
52   install -Dm755 bin/Grace "$pkgdir/usr/bin/cm-grace"
54   # pixmaps and desktop file
55   install -Dm644 ../cmlogobb.png "$pkgdir/usr/share/pixmaps/cm-grace.png"
56   install -Dm644 ../cm-grace.desktop "$pkgdir/usr/share/applications/cm-grace.desktop"
59 # vim:set ts=2 sw=2 et: