updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / jag / PKGBUILD
blob1324ad7e92609e6a9eb40724445a0a1f75af177c
1 # Maintainer: Simone Sclavi 'Ito' <darkhado@gmail.com>
2 # Contributor: Leonardo Milani <leonardo@leonardomiliani.com>
4 pkgname=jag
5 pkgver=0.3.1
6 pkgrel=6
7 pkgdesc="A free arcade-puzzle 2D game in which you have to break all the target pieces"
8 arch=('i686' 'x86_64')
9 url="http://jag.xlabsoft.com/"
10 depends=('qt' 'sdl_mixer')
11 optdepends=('jag-themes: for additional graphic themes')
12 license=('GPL3')
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'
21                  ) 
22 build() {
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
30     
31     ## building game
32         qmake 
33         make 
34         
35     ## building level editor  
36         cd editor
37         qmake 
38         make 
40 package() {
41     ## installing game
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            
46     
47     ## installing level editor
48     cd 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