talimat 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # Tanım: Microsoft Word benzeri basit bir kelime işlemci yazılımı.
  2. # URL: http://www.abisource.com/
  3. # Paketçi: milisarge
  4. # Gerekler: boost cairo aspell fribidi enchant wv icu librsvg gtk2 redland rasqal desktop-file-utils gtk3 goffice
  5. # Grup: ofis
  6. isim=abiword
  7. surum=3.0.2
  8. devir=1
  9. kaynak=(http://www.abisource.com/downloads/$isim/$surum/source/$isim-$surum.tar.gz
  10. abiword-3.0.0-librevenge.patch
  11. abiword-3.0.1-libwps-0.4.patch
  12. aiksaurus-plugin.m4
  13. command-plugin.m4
  14. python-override.patch
  15. bug13815.patch
  16. enchant-2.1.patch
  17. libical-deprecated.patch)
  18. derle() {
  19. cd $isim-$surum
  20. # fix build with librevenge based import filters
  21. patch -Np0 -i ../abiword-3.0.0-librevenge.patch
  22. # Fix libwpd 0.4 detection
  23. patch -Np1 -i ../abiword-3.0.1-libwps-0.4.patch
  24. # Fix python override code to work with Python 3.x
  25. patch -Np1 -i ../python-override.patch
  26. # Fix black on black (FS#51667)
  27. # http://bugzilla.abisource.com/show_bug.cgi?id=13815
  28. patch -Np1 -i ../bug13815.patch
  29. # Replace deprecated enchant functions
  30. patch -Np1 -i ../enchant-2.1.patch
  31. # Replace deprecated libical functions
  32. patch -Np1 -i ../libical-deprecated.patch
  33. # Install missing m4 file
  34. install -m644 ../aiksaurus-plugin.m4 plugins/aiksaurus/plugin.m4
  35. install -m644 ../command-plugin.m4 plugins/command/plugin.m4
  36. # Generate m4 file for configure
  37. find plugins -name plugin.m4 | xargs cat > plugin-configure.m4
  38. # enchant-2 naming change
  39. sed -i 's/enchant >=/enchant-2 >=/' configure.ac
  40. libtoolize --force
  41. autoreconf -fi
  42. export CXXFLAGS="-std=c++0x"
  43. ./configure --prefix=/usr \
  44. --enable-shared \
  45. --disable-static \
  46. --enable-clipart \
  47. --enable-templates \
  48. --enable-plugins \
  49. --enable-introspection
  50. sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  51. make
  52. make
  53. make DESTDIR=$PKG install
  54. # Başlatıcı
  55. sed -i 's/^Exec=/Name[tr]=AbiWord \
  56. GenericName[tr]=Kelime İşlemci \
  57. Comment[tr]=Microsoft Word benzeri basit bir kelime işlemci yazılımı.\
  58. &/' $PKG/usr/share/applications/$isim.desktop
  59. cd src/gi-overrides
  60. sed -i 's/python -c/python2 -c/' Makefile
  61. make DESTDIR="$PKG" PYTHON=python2 install
  62. }