1 # Maintainer: Simone Sclavi 'Ito' <darkhado@gmail.com>
2 # Contributor: Leonardo Milani <leonardo@leonardomiliani.com>
7 pkgdesc="A free arcade-puzzle 2D game in which you have to break all the target pieces"
9 url="http://jag.xlabsoft.com/"
10 depends=('qt' 'sdl_mixer')
11 optdepends=('jag-themes: for additional graphic themes')
13 source=(http://jag.xlabsoft.com/files/$pkgname-$pkgver-src.zip
14 'jag.desktop' 'jag.png'
15 'jag-level-editor.desktop' 'jag-leveleditor.png')
16 md5sums=('78a408629ca9858dc8279d9c124386f7'
17 '89494a96f138793852744484a05f62d2'
18 '75bad1a145baa8a9b3fb79b65c959ae6'
19 '60a2470557e66eed3317d93cf47f4fdd'
20 '6a733b853844f834efcd182a9182aba6'
23 cd $pkgname-$pkgver-src
25 ### fixing paths & linker flags ###
26 sed -i -e 's#/usr/local/bin#/usr/bin#g' \
27 -e 's#/usr/local/games#/usr/share#g'\
28 -e 's#LIBS += -lSDLmain#LIBS += -lSDL -lX11#'\
29 Game.pro main.cpp editor/editor.pro
35 ## building level editor
42 cd $pkgname-$pkgver-src
43 make INSTALL_ROOT=${pkgdir} install
44 install -D -m644 ../jag.png ${pkgdir}/usr/share/pixmaps/jag.png
45 install -D -m644 ../jag.desktop ${pkgdir}/usr/share/applications/jag.desktop
47 ## installing level editor
49 make INSTALL_ROOT=${pkgdir} install
50 install -D -m644 ${srcdir}/jag-leveleditor.png ${pkgdir}/usr/share/pixmaps/jag-leveleditor.png
51 install -D -m644 ${srcdir}/jag-level-editor.desktop ${pkgdir}/usr/share/applications/jag-level-editor.desktop