# gnumeric
# ========
# Slackware 9.0's 'gnumeric' package includes 1.1.16, 9.1's includes 1.2.0,
# 10.0's includes 1.2.12, and 10.1's includes 1.2.13 As of Slackware 10.2,
# Gnome is no longer included (and neither is gnumeric).
# Because of the different prerequisites that are required I include the
# latest 1.2.x, 1.4.x, and 1.x.x versions of gnumeric below.
# If you ever want to uninstall gnumeric, cd into the source directory, run
# 'make uninstall', remove the source directory, and then remove the
# tarball.
# gnumeric 1.2.13
# ===============
# You can run Gnumeric 1.2.x on any system with Gnome 2.0, 2.2, 2.4, or 2.6
# libraries installed.
# From a stock Slackware 9.1 system you should just have to install anything
# that's missing from the list and upgrade libgnomeprint and libgnomeprintui.
# Not sure about Slackware 10.0 Mine is very non-stock :-)
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gnumeric-*" -exec rm -r {} \;
tar xjvf ~/gnumeric-1.2.13.tar.bz2
cd gnumeric-1.2.13
test $UID = 0 && chown -R root:root .
# If you use freetype2 >= 2.1.7 (like I do), apply this patch:
wget -nc http://englanders.cc/pub/linux/patches/\
gnumeric-1.2.8-freetype.patch &&
patch -p1 < gnumeric-1.2.8-freetype.patch
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
make
## If make fails with an error like this:
# /usr/bin/ld: cannot find -lssl
## re-run it like this:
# make LDFLAGS=-L/usr/local/ssl/lib
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg gnumeric
make install
find /usr/share/locale -type f -name "gnumeric.mo" -exec rm {} \;