1 # Maintainer : Bernardo Barros <bernardobarros@gmail.com>
2 # Contributor: SpepS <dreamspepser at yahoo dot it>
7 pkgdesc="A formal language for score level music representation and a Qt editing suite."
9 url="http://sourceforge.net/projects/guidolib"
12 optdepends=('pd: pure data support')
13 install="$pkgname.install"
14 source=("http://sourceforge.net/projects/guidolib/files/Guidolib-src/guidolib-$pkgver-src.tgz"
16 "guidoscenecomposer.desktop"
17 "guidoqtfontviewer.desktop"
18 "guidoqtviewer.desktop")
19 md5sums=('8b89ad8f0d88d96844fefef682125420'
20 '8b4fe7dc4802ccffd7dbf62fbc29bf6a'
21 '47fc38c558151973d45a5c8eb5fe5c67'
22 '25ed9b380987bf793effabf7924fd606'
23 '5dfa4a7f60e04f9ad5a7bc9cb25df7cc')
26 cd "$srcdir/guidolib-$pkgver-src"
28 # remove lib64 destination
29 sed -i "s|lib64|lib|g" `grep -Erl lib64 .`
31 # let Qt apps build against GUIDOEngine
32 sed -i "s|lGUIDOEngine|& -L../../build|g" Qt/GUIDOEngineLink.pri
34 cd cmake && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
39 cd GuidoQtViewer && qmake && make
43 cd "$srcdir/guidolib-$pkgver-src/cmake"
45 make DESTDIR="$pkgdir/" install
48 install -Dm 755 ../Qt/bin/GuidoEditor "$pkgdir/usr/bin/guidoeditor"
49 install -Dm 755 ../Qt/bin/GuidoSceneComposer "$pkgdir/usr/bin/guidoscenecomposer"
50 install -Dm 755 ../Qt/bin/GuidoQtFontViewer "$pkgdir/usr/bin/guidoqtfontviewer"
51 install -Dm 755 ../Qt/bin/GuidoQtViewer "$pkgdir/usr/bin/guidoqtviewer"
52 install -Dm 755 ../Qt/bin/guido2Image "$pkgdir/usr/bin/guido2image"
54 # Install guido score font
55 install -Dm 644 ../src/guido2.ttf "$pkgdir/usr/share/fonts/TTF/guido2.ttf"
58 install -d "$pkgdir/usr/share/doc/guido"
59 cp -a ../doc/[^doxygen]* "$pkgdir/usr/share/doc/guido"
62 install -d "$pkgdir/usr/share/$pkgname"
63 cp -a ../gmn-examples "$pkgdir/usr/share/$pkgname"
65 # Install desktop files and pixmaps
66 install -d "$pkgdir/usr/share/applications"
67 install -Dm644 "$srcdir/"*.desktop "$pkgdir/usr/share/applications"
68 install -Dm644 ../Qt/GuidoSceneComposer/rsc/addFromFileGuido.png \
69 "$pkgdir/usr/share/pixmaps/$pkgname.png"