template 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Template file for 'abiword'
  2. pkgname=abiword
  3. version=3.0.4
  4. revision=1
  5. build_style=gnu-configure
  6. configure_args="--enable-plugins --enable-clipart --enable-templates
  7. $(vopt_if gtk3 '--with-gtk3' '--with-gtk2')
  8. $(vopt_enable goffice)"
  9. hostmakedepends="automake libtool flex pkg-config"
  10. makedepends="libjpeg-turbo-devel libpng-devel fribidi-devel libgsf-devel
  11. enchant-devel librsvg-devel wv-devel boost-devel libxslt-devel
  12. libwmf-devel libchamplain-devel redland-devel libical-devel
  13. libgcrypt-devel harfbuzz-devel $(vopt_if goffice goffice-devel)
  14. $(vopt_if gtk3 'gtk+3-devel' 'gtk+-devel')"
  15. depends="hicolor-icon-theme desktop-file-utils liberation-fonts-ttf"
  16. short_desc="Free word processing program similar to Microsoft(R) Word"
  17. maintainer="Orphaned <orphan@voidlinux.org>"
  18. license="GPL-2.0-or-later"
  19. homepage="http://www.abisource.com/"
  20. distfiles="${homepage}/downloads/${pkgname}/${version}/source/${pkgname}-${version}.tar.gz"
  21. checksum=e93096cb192e5bc19d62e180fc5eda643206465315a710113ae5036bc2a1a5d7
  22. build_options="gtk3 goffice"
  23. build_options_default="gtk3 goffice"
  24. CXXFLAGS="-std=c++11"
  25. pre_configure() {
  26. # To remove Google search plugin.
  27. # We have a "remove-google.patch" patch file to remove Google from the build.
  28. # This is just to be extra sure.
  29. rm -rf plugins/google
  30. }
  31. libabiword_package() {
  32. short_desc+=" - Runtime library"
  33. pkg_install() {
  34. vmove "usr/lib/*.so*"
  35. }
  36. }
  37. abiword-devel_package() {
  38. depends="fribidi-devel libgsf-devel wv-devel enchant-devel gtk+3-devel
  39. librsvg-devel libabiword>=${version}_${revision}"
  40. short_desc+=" - development files"
  41. pkg_install() {
  42. vmove usr/include
  43. vmove usr/lib/pkgconfig
  44. }
  45. }