1 # Maintainer: Alexander Rødseth <rodseth@gmail.com>
2 # Contributor: Hilton Medeiros <medeiros.hilton AT gmail DOT com>
6 pkgdesc="MIDI editor, player, tracker and composer"
8 url="http://ariamaestosa.sourceforge.net/"
10 depends=('wxgtk>=2.8' 'mesa' 'alsa-lib' 'hicolor-icon-theme' 'xdg-utils'
12 optdepends=('timidity++: for midi playback'
13 'timidity-freepats: for midi playback')
14 makedepends=('scons' 'addinclude')
15 install=ariamaestosa.install
16 source=("http://downloads.sourceforge.net/$pkgname/AriaSrc-$pkgver.tar.bz2")
17 md5sums=('858dfeed04b5be4dc6f5ad0565b76ab8')
20 cd "$srcdir/AriaSrc-$pkgver/libjdkmidi"
22 msg2 "Configuring libjdkmidi..."
25 msg2 "Compiling libjdkmidi..."
28 addinclude -n Src/Midi/GuitarTuning.cpp '#include <cstddef>'
29 mv Resources/Documentation Resources/score .
30 sed -i "/--rpath/d" SConstruct
32 scons config=release prefix="$pkgdir/usr"
33 msg2 "Fixing application shortcut..."
34 sed -i "s:Exec=Aria:Exec=$pkgname:" Freedesktop/Aria.desktop
35 sed -i -e "/^Version/s:1.2.2:1.2.3:" -e "/^Icon/s:/local::" \
36 Freedesktop/Aria.desktop
40 cd "$srcdir/AriaSrc-$pkgver"
42 msg2 "Packaging application..."
43 scons config=release prefix="$pkgdir/usr" install
44 mkdir -p "$pkgdir/usr/share/doc"
45 cp -r Documentation "$pkgdir/usr/share/doc/$pkgname"
46 cp -r score "$pkgdir/usr/share/Aria"
47 msg2 "Packaging icons..."
48 install -Dm644 aria32.png \
49 "$pkgdir/usr/share/icons/hicolor/32x32/apps/$pkgname.png"
50 install -Dm644 aria48.png \
51 "$pkgdir/usr/share/icons/hicolor/48x48/apps/$pkgname.png"
52 install -Dm644 aria64.png \
53 "$pkgdir/usr/share/icons/hicolor/64x64/apps/$pkgname.png"
54 install -Dm644 aria128.png \
55 "$pkgdir/usr/share/icons/hicolor/128x128/apps/$pkgname.png"
56 msg2 "Packaging application shortcut..."
57 install -Dm644 Freedesktop/Aria.desktop \
58 "$pkgdir/usr/share/applications/Aria.desktop"
59 install -m644 Freedesktop/*.png Freedesktop/*.xml "$pkgdir/usr/share/Aria/"
60 msg2 "Packaging license..."
61 install -Dm644 license.txt "$pkgdir/usr/share/licenses/$pkgname/license.txt"
63 mv "$pkgdir/usr/bin/Aria" "$pkgdir/usr/bin/$pkgname"
64 mv "$pkgdir/usr/share/Aria" "$pkgdir/usr/share/$pkgname"
65 mv "$pkgdir/usr/share/applications/Aria.desktop" \
66 "$pkgdir/usr/share/applications/$pkgname.desktop"
68 # vim:set ts=2 sw=2 et: