Installing LibreOffice 4.1 on Slackware by tweaking the 4.0.4 .SlackBuild

NOTE: The .SlackBuild for Libre Office has been updated for LibreOffice 4.1.3, so these directions are obsolete.

Being an impatient person, I chose not to wait for the .SlackBuild for LibreOffice to be updated for version 4.1, so I hacked the file intended for version 4.0.4 to work. Blessings be, it turned out to be very easy!

Assuming the reader is just as impatient, I’ll make this short:

NOTE: These directions are for Slackware64 14.0. If you’re using a different version or 32-bit install, your mileage will vary.

1) Grab the SlackBuild for LibreOffice 4.0.4 from: http://slackbuilds.org/repository/14.0/office/libreoffice/
2) Uncompress the file where you’d like to build from. I like /usr/src/SlackBuilds
3) Edit libreoffice.SlackBuild making the following changes:

Change the line:

VERSION=${VERSION:-“4.0.4”}
to
VERSION=${VERSION:-“4.1.0”}

Comment the line:

mv desktop-integration/libreoffice$SRCSHORT-freedesktop-menus-$SRCSHORT*.noarch.rpm .
so it becomes
#mv desktop-integration/libreoffice$SRCSHORT-freedesktop-menus-$SRCSHORT*.noarch.rpm .

4) Grab the file LibreOffice_4.1.0_Linux_x86-64_rpm.tar.gz from http://www.libreoffice.org/download (I suggest using a bittorent client and download the torrent.)
5) Put LibreOffice_4.1.0_Linux_x86-64_rpm.tar.gz in the directory with the .SlackBuild files and run ./libreoffice.SlackBuild

In a few minutes you should have the package: libreoffice-4.1.0-x86_64-1_SBo.tgz

You probably want the built-in help as well.  You can the get the .Slackbuild from: http://slackbuilds.org/repository/14.0/office/libreoffice-helppack/ and the source file from http://www.libreoffice.org/download. (This builds with only changing the version number in the .Slackbuild file.)

Just change VERSION=${VERSION:-“4.0.4”} to VERSION=${VERSION:-“4.1.0”}

Kudos to Niels Horn for doing all the hard work on this and providing the .Slackbuilds for LibreOffice!

NOTE: It is interesting that building from the SlackBuild and installing on Slackware seened to take less time that the install on Windows. Go figure!

Happy Slacking!
Stu…

Leave a Comment