updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / guido / PKGBUILD
blob4c1296a2b63c0966f57e81fde973af57da629ebe
1 # Maintainer : Bernardo Barros <bernardobarros@gmail.com>
2 # Contributor: SpepS <dreamspepser at yahoo dot it>
4 pkgname=guido
5 pkgver=1.40
6 pkgrel=3
7 pkgdesc="A formal language for score level music representation and a Qt editing suite."
8 arch=('i686' 'x86_64')
9 url="http://sourceforge.net/projects/guidolib"
10 license=('GPL')
11 depends=('qt')
12 optdepends=('pd: pure data support')
13 install="$pkgname.install"
14 source=("http://sourceforge.net/projects/guidolib/files/Guidolib-src/guidolib-$pkgver-src.tgz"
15         "guidoeditor.desktop"
16         "guidoscenecomposer.desktop"
17         "guidoqtfontviewer.desktop"
18         "guidoqtviewer.desktop")
19 md5sums=('8b89ad8f0d88d96844fefef682125420'
20          '8b4fe7dc4802ccffd7dbf62fbc29bf6a'
21          '47fc38c558151973d45a5c8eb5fe5c67'
22          '25ed9b380987bf793effabf7924fd606'
23          '5dfa4a7f60e04f9ad5a7bc9cb25df7cc')
25 build() {
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
35   make
37   # Build Qt apps
38   cd ../Qt && make unix
39   cd GuidoQtViewer && qmake && make
42 package() {
43   cd "$srcdir/guidolib-$pkgver-src/cmake"
45   make DESTDIR="$pkgdir/" install
47   # Install Qt apps
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"
57   # docs: 
58   install -d "$pkgdir/usr/share/doc/guido"
59   cp -a ../doc/[^doxygen]* "$pkgdir/usr/share/doc/guido"
61   # Install examples
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"