talimat 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Tanım: Küçük çocuklar için tasarlanmış çizim programı
  2. # URL: http://tuxpaint.org/
  3. # Paketçi: Cihan Alkan
  4. # Gerekler: optipng setconf sdl-ttf sdl-mixer python fribidi sdl-image sdl-pango libpaper librsvg
  5. # Grup: tasarım
  6. isim=tuxpaint
  7. surum=0.9.22
  8. devir=1
  9. kaynak=(https://downloads.sourceforge.net/sourceforge/tuxpaint/$isim-$surum.tar.gz)
  10. derle() {
  11. cd $isim-$surum
  12. # python2 fix
  13. for f in docs/zh_tw/mkTuxpaintIM.py fonts/locale/zh_tw_docs/maketuxfont.py; do
  14. sed -i '0,/on/s//on2/' $f
  15. done
  16. # libpng15 fix
  17. sed -i 's:$(ARCH_LINKS):$(ARCH_LINKS) -lpng:' Makefile
  18. # libpng16 fix
  19. find -name '*.png' -exec optipng -quiet -force -fix {} +
  20. # fullscreen by default
  21. sed -i 's:# fu:fu:' src/tuxpaint.conf
  22. # desktop shortcut categories
  23. setconf src/tuxpaint.desktop Categories 'Game;KidsGame;Graphics;RasterGraphics;'
  24. # bash completion placement
  25. setconf Makefile COMPLETIONDIR '$(DESTDIR)/usr/share/bash-completion/completions'
  26. cd $SRC
  27. make -C "$isim-$surum" PREFIX=/usr clean translations all -j1
  28. make -C "$isim-$surum" \
  29. PREFIX=/usr \
  30. GNOME_PREFIX=/usr \
  31. X11_ICON_PREFIX="$PKG/usr/share/pixmaps" \
  32. DESTDIR="$PKG" \
  33. install -j1
  34. # fix permissions
  35. chmod -R 644 "$PKG/usr/share/doc/tuxpaint-dev/"*
  36. chmod 755 "$PKG/usr/share/doc/tuxpaint-dev/html"
  37. # bash completions
  38. mv "$PKG/usr/share/bash-completion/completions/tuxpaint-completion.bash" \
  39. "$PKG/usr/share/bash-completion/completions/tuxpaint"
  40. }