updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / opengf / PKGBUILD
blobd9bcef139496ddcdacb4c1dcc2dc28400f8ada6d
1 # Maintainer: Dany Martineau <dany.luc.martineau@gmail.com>
3 pkgname=opengf
4 pkgver=1.2rc2
5 pkgrel=2
6 pkgdesc="Learn music the easy way"
7 arch=('i686' 'x86_64')
8 url="http://sourceforge.net/projects/opengf/"
9 license=('GPL')
10 depends=('sdl_mixer' 'sdl_image' 'sdl_ttf')
11 source=(http://downloads.sourceforge.net/opengf/OpenGF-RC2-1.1-Linux.tar.gz opengf.desktop note_generator.diff)
12 md5sums=('dcd0094db94b594a3f81b913f867c4a4' 'd5f37ff4c0447cfbb859bee429f3563e' '870140d81b6712f24622db770d021365')
14 build() {
15   cd ${srcdir}/OpenGF-RC2-1.2-Linux
16   patch -p0 < ${srcdir}/note_generator.diff || return 1
17   cd bin  
18   make || return 1
19   mkdir -p $pkgdir/usr/share/{applications,opengf}
20   mkdir -p $pkgdir/usr/bin
21   cp OpenGF $pkgdir/usr/share/opengf
22   cp -R data $pkgdir/usr/share/opengf
23   cp -R config $pkgdir/usr/share/opengf
24   echo "#!/bin/bash" >> opengf.sh
25   echo "cd /usr/share/opengf/" >> opengf.sh
26   echo "./OpenGF" >> opengf.sh
27   cp opengf.sh $pkgdir/usr/bin
28   chmod 755 $pkgdir/usr/bin/opengf.sh
29   cp $srcdir/opengf.desktop $pkgdir/usr/share/applications