Category Archives: GnuCash

GnuCash on Arch Linux

The version of GnuCash in Arch Linux, although up-to-date, is not compiled to use the webkit library, so formatting of reports such the tax invoice is very basic: it doesn't use the fonts that can be selected in the report options.

It's easily fixed though:

  1. sudo pacman -S abs webkitgtk2
  2. sudo abs
  3. copy /var/abs/extra/gnucash to a suitable place, such as ~/abs/
  4. cd ~/abs/gnucash
  5. add the option '–with-html-engine=webkit' to the PKGBUILD file after the line beginning with './configure'.  Or apply this patch:
    — PKGBUILD~    2012-11-20 16:49:51.048534626 +0000
    +++ PKGBUILD    2012-11-20 16:49:54.015211392 +0000
    @@ -1,4 +1,4 @@
    -# $Id: PKGBUILD,v 1.1 2012/11/20 05:03:00 chris Exp chris $
    +# $Id: PKGBUILD 165143 2012-08-11 18:49:18Z eric $
     # Maintainer: Aaron Griffin <aaron@archlinux.org>
     # Contributor: Mark Schneider <queueRAM@gmail.com>
     
    @@ -22,6 +22,7 @@
     build() {
       cd "${srcdir}/${pkgname}-${pkgver}"
       ./configure –prefix=/usr –mandir=/usr/share/man –sysconfdir=/etc
    +    –with-html-engine=webkit
         –libexecdir=/usr/lib –disable-schemas-install –enable-ofx –enable-aqbanking
       make
     }
  6. makepkg
  7. sudo pacman -U *.xz