talimat 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Tanım: Sürükleyici yarış ile akıllıca yapılan açık kaynak sürüş simülasyonu
  2. # URL: http://vdrift.net/
  3. # Paketçi: Cihan Alkan
  4. # Gerekler: bullet curl sdl2-image glew libvorbis hicolor-icon-theme libarchive scons xorg-mesa
  5. # Grup: oyun
  6. isim=vdrift
  7. surum=2014.10.20
  8. devir=1
  9. kaynak=(http://downloads.sourceforge.net/sourceforge/$isim/$isim-${surum//./-}.tar.bz2
  10. vdrift-gcc6.patch
  11. vdrift-sconstruct.patch
  12. vdrift-sconscript.patch)
  13. derle() {
  14. cd vdrift
  15. # Fix build with GCC 6 (Fedora)
  16. patch -p1 -i ../vdrift-gcc6.patch
  17. # Patch SConstruct and SConscript for SCons 3.0 compatibility
  18. patch -p1 -i ../vdrift-sconstruct.patch
  19. patch -p1 -i ../vdrift-sconscript.patch
  20. # build and install
  21. scons $MAKEFLAGS \
  22. "destdir"="$PKG" \
  23. "release"=1 \
  24. "force_feedback"=1 \
  25. "prefix"=/usr \
  26. "datadir"=share/$isim/ \
  27. "extbullet"=1
  28. scons install
  29. # .desktop dosyası kur
  30. install -Dm644 $isim.desktop "$PKG"/usr/share/applications/$isim.desktop
  31. sed -i '1 s/^\xef\xbb\xbf//' "$PKG"/usr/share/applications/$isim.desktop # remove BOM (WHY IS THERE?)
  32. # simgeleri kur
  33. install -Dm644 data/textures/icons/vdrift-16x16.png "$PKG"/usr/share/icons/hicolor/16x16/apps/vdrift.png
  34. install -Dm644 data/textures/icons/vdrift-32x32.png "$PKG"/usr/share/icons/hicolor/32x32/apps/vdrift.png
  35. install -Dm644 data/textures/icons/vdrift-64x64.png "$PKG"/usr/share/icons/hicolor/64x64/apps/vdrift.png
  36. install -Dm644 data/textures/icons/vdrift-64x64.png "$PKG/usr/share/pixmaps/$isim.png"
  37. }