1 # Contributor: Sebastien Piccand <sebcactus gmail com>
5 pkgdesc="A simple GUI-driven application to solve and generate sudoku puzzles through logical means"
7 url="http://sourceforge.net/projects/sudoku-savant/"
10 source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2)
11 md5sums=('668e77f35c6e8106da860a88c71f3c73')
14 cd $srcdir/$pkgname-$pkgver
15 # Fix installation path for the .desktop file
16 sed -i 's|$(datadir)/app|$(DESTDIR)$(datadir)/app|' Makefile.in
17 sed -i 's|$(datadir)/pixmaps|$(DESTDIR)$(datadir)/pixmaps|' Makefile.in
18 mkdir -p $pkgdir/usr/share/pixmaps
19 sed -i 's|sudoku.desktop|sudoku-savant.desktop|' Makefile.in
20 # Fix the non-standard .desktop file
21 sed -i 's|GNOME;GTK;Application;Game;|Game;|' $pkgname.desktop.in
22 ./configure --prefix=/usr
24 make DESTDIR=$startdir/pkg/ install || return 1