LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-04-2012, 07:06 PM   #1
neymac
Member
 
Registered: May 2009
Distribution: Slackware64-14.1
Posts: 138

Rep: Reputation: 19
Script to download and build the latest libreoffice


I've found a amazing script to update java (JRE) to the latest version. Is there any script to download the latest 3 libreoffice's files (help rpm, language source and Libreoffice rpm) available for slackware?
 
Old 09-04-2012, 07:30 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Even better, you can just download the packages provided by Alien Bob and available here for the application itself, languages files and mozilla plugins.

You will be able to use the standard Slackware tool to manage these packages; that wouldn't be the case with RPM ones.

Please notice though that these packages are intended for Slackware-13.37.

For Slackware 13.1 (if you are still using it) you could have to build yourself the packages with the SlackBuilds provided in the same directory.

Last edited by Didier Spaier; 09-05-2012 at 05:08 AM.
 
Old 09-04-2012, 09:18 PM   #3
neymac
Member
 
Registered: May 2009
Distribution: Slackware64-14.1
Posts: 138

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by Didier Spaier View Post
For Slackware 13.1 (if you are still using it) you could have to build yourself the packages with the SlackBuilds provided in the same directory.
I've built the latest (3.6.1) version with the 3 files downloaded from http://www.libreoffice.org/download. I'm looking for a way to check by script if is there a new version, download and build it automatically.I'm still with slackware 13.1 (64 bits), maybe I will upgrade to 14.0 soon.
Thanks for the tip.

Last edited by neymac; 09-04-2012 at 09:19 PM.
 
Old 09-05-2012, 02:08 AM   #4
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by neymac View Post
I've built the latest (3.6.1) version with the 3 files downloaded from http://www.libreoffice.org/download. I'm looking for a way to check by script if is there a new version, download and build it automatically.
You could probably start with something like this:

Code:
LIBOVERSION=$(wget -qO- http://www.libreoffice.org/download | sed -rn 's,.*/LibO_([0-9\.]*)_Linux_x86_install-rpm_en-US.tar.gz[^\.].*,\1,p')

if [ -z $LIBOVERSION ]; then
  echo "Could not work out the latest version; exiting"
  exit 1
fi

if /bin/ls /var/log/packages/libreoffice-$LIBOVERSION-* >/dev/null 2>&1 ; then
  echo "LibreOffice version $LIBOVERSION is already installed. Nothing to do!"
  exit 0
fi

wget --header="Accept-Language: $(echo $LANG | cut -d. -f1)" -qO- http://www.libreoffice.org/download |\
  grep -E "(install-rpm|langpack-rpm|helppack-rpm).*tar.gz[^\.]" |\
  grep -v "LibO-SDK" |\
  wget -Fi-
That covers the check for new version and download parts. Put this in a script and have the rest be like a traditional SlackBuild that does repacking, using $LIBOVERSION as the version number.

EDIT: The above assumes you are using the naming format libreoffice-version-arch-buildtag, like Alien Bob does with his packages. If you use some other name (i.e. not libreoffice) adjust my check in /var/log/packages/ accordingly.

Last edited by ruario; 09-05-2012 at 02:29 AM. Reason: Added the final "EDIT" line; found a more robust way to exclude the SDK
 
1 members found this post helpful.
Old 09-05-2012, 04:56 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
A script for easy re-packaging of the official RPM's into a Slackware package can be found on SlackBuilds.org: http://slackbuilds.org/repository/13...e/libreoffice/

The differnce between my packages and the official RPM's:
My own packages (http://www.slackware.com/~alien/slac...s/libreoffice/) are compiled from source on Slackware - the official binary RPM's are not of course. They contain some compatibility libs that allow those binaries to run on a wide range of Linux distributions.

Eric
 
1 members found this post helpful.
Old 09-05-2012, 09:57 AM   #6
neymac
Member
 
Registered: May 2009
Distribution: Slackware64-14.1
Posts: 138

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by ruario View Post
You could probably start with something like this:
Thanks, ruario, your script works fine here. Then I'd just added the libreoffice.SlackBuild script on it and it's done (I changed "-" to "_" after $LIBOVERSION "if /bin/ls /var/log/packages/libreoffice-$LIBOVERSION-*" to match my package name).
Thanks, Alien Bob for the usefully hints.

Last edited by neymac; 09-05-2012 at 10:33 AM.
 
Old 09-08-2012, 03:17 AM   #7
D1ver
Member
 
Registered: Jan 2010
Distribution: Slackware 13.37
Posts: 598
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Mildly off topic but I installed Libreoffice (3.6.1.2) from the slackbuild by editing the version variable, it seems to work fine but it looks very ugly in KDE.. Is there a way to enable qt/kde theme integration?
 
Old 09-08-2012, 06:32 AM   #8
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
oxygen-gtk perhaps.
 
1 members found this post helpful.
Old 09-08-2012, 08:31 AM   #9
neymac
Member
 
Registered: May 2009
Distribution: Slackware64-14.1
Posts: 138

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by D1ver View Post
Mildly off topic but I installed Libreoffice (3.6.1.2) from the slackbuild by editing the version variable, it seems to work fine but it looks very ugly in KDE.. Is there a way to enable qt/kde theme integration?
Or you can change the icon's styles on Libreoffice. "Tools"->"Options"->"Views"->"Icons size and styles" - Choose "oxygen (Automatic)" or try others styles, if you want.

Last edited by neymac; 09-08-2012 at 08:37 AM.
 
Old 09-08-2012, 07:24 PM   #10
D1ver
Member
 
Registered: Jan 2010
Distribution: Slackware 13.37
Posts: 598
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
I ended up finding the answer here. Renaming the /opt/libreoffice3.6/ure/lib/libstdc++.so.6 file results in a nice pretty KDE libreoffice.
 
1 members found this post helpful.
  


Reply

Tags
libreoffice



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Build Your Business Around LibreOffice, LibreOffice Certification Program Announced LXer Syndicated Linux News 0 05-07-2012 12:10 PM
HOWTO Install Latest Firefox and Libreoffice in Debian Squeeze m_yates Debian 17 10-03-2011 08:59 AM
[SOLVED] Latest Mystery: Firefox Launches LibreOffice. cwizardone Slackware 15 08-24-2011 08:27 AM
LXer: LibreOffice Rolls Out the Updates, Latest 3.3.2 LXer Syndicated Linux News 0 03-25-2011 11:11 PM
Linux script to download the latest release of a sourceforge project? dennis123123 Linux - General 1 04-23-2009 11:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration