talimat 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Tanım: Hızlı tempolu ekip tabanlı dış alan çok oyunculu muharebe oyunu
  2. # URL: http://bitfighter.org/
  3. # Paketçi: milisarge
  4. # Gerekler: cmake xorg-glu sdl2 libpng libvorbis libmodplug openal speex
  5. # Grup: oyun
  6. isim=bitfighter
  7. surum=0.19f
  8. devir=1
  9. kaynak=(http://bitfighter.org/files/bitfighter-${version/./}.tar.gz
  10. https://bitfighter.org/files/classic_level_pack.zip
  11. bitfighter.png
  12. bitfighter.desktop)
  13. derle() {
  14. cd ${isim}-${version/./}
  15. mkdir -p build
  16. cd build
  17. cmake \
  18. -DCMAKE_INSTALL_PREFIX:PATH="/usr" \
  19. -DUSE_SDL2:BOOL=YES \
  20. -DUSE_GLES:BOOL=YES \
  21. -DCMAKE_BUILD_TYPE=Release \
  22. ..
  23. make VERBOSE=1
  24. # install game ressources and executable
  25. install -d "$PKG"/usr/share/$isim "$PKG"/usr/bin
  26. cd ..
  27. cp "${SRC}"/classic_level_pack/* resource/
  28. cp notifier/gci/bitfighter.ini resource/
  29. cp -r resource/* "$PKG"/usr/share/$isim
  30. install -m755 exe/$isim "$PKG"/usr/bin/$isim
  31. # install a desktop entry
  32. install -Dm644 ../$isim.png "$PKG"/usr/share/pixmaps/$isim.png
  33. install -Dm644 ../$isim.desktop "$PKG"/usr/share/applications/$isim.desktop
  34. }