1. # Maintainer: Hubert Maraszek <marach5 at gmail dot com>
  2. # Contributor: Dany Martineau <dany.luc.martineau@gmail.com>
  3.  
  4. pkgname=xye
  5. pkgver=0.12.1
  6. pkgrel=1
  7. pkgdesc="Puzzle game in which the objective is to help a character that looks like a green circle to get all the gems in the room."
  8. url="http://xye.sourceforge.net/"
  9. license=('GPL')
  10. arch=('i686' 'x86_64')
  11. depends=('sdl_image' 'sdl_ttf' 'gcc-libs')
  12. makedepends=('imagemagick')
  13. source=(http://downloads.sourceforge.net/${pkgname}/$pkgname-$pkgver.tar.gz
  14. xye.desktop)
  15.  
  16. md5sums=('d6482d7490c11baacab4ca2df436af4f'
  17. '0bc624b90351f316f2c318957695b7d1')
  18.  
  19.  
  20. build() {
  21. cd "$srcdir/$pkgname-$pkgver"
  22.  
  23. sed -i '24i#include<unistd.h>' src/gen.cpp
  24. sed -i '619s/i\([^nrt]\)/k\1/g' src/editorsave.cpp
  25. sed -i '620s/i)/k)/' src/editorsave.cpp
  26.  
  27. ./configure --prefix=/usr
  28. make
  29. make DESTDIR="$pkgdir" install
  30. convert xye.svg xye.png
  31. install -D xye.png "$pkgdir/usr/share/xye/xye.png"
  32. install -D ../xye.desktop "$pkgdir/usr/share/applications/xye.desktop"
  33. }