LinuxQuestions.org
Register a domain and help support LQ
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, 08:06 PM   #1
neymac
Member
 
Registered: May 2009
Distribution: Slackware64-14.0
Posts: 117

Rep: Reputation: 13
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, 08:30 PM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,536

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
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 06:08 AM.
 
Old 09-04-2012, 10:18 PM   #3
neymac
Member
 
Registered: May 2009
Distribution: Slackware64-14.0
Posts: 117

Original Poster
Rep: Reputation: 13
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 10:19 PM.
 
Old 09-05-2012, 03:08 AM   #4
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,896

Rep: Reputation: 952Reputation: 952Reputation: 952Reputation: 952Reputation: 952Reputation: 952Reputation: 952Reputation: 952
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 03: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, 05:56 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,334

Rep: Reputation: Disabled
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, 10:57 AM   #6
neymac
Member
 
Registered: May 2009
Distribution: Slackware64-14.0
Posts: 117

Original Poster
Rep: Reputation: 13
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 11:33 AM.
 
Old 09-08-2012, 04:17 AM   #7
D1ver
Member
 
Registered: Jan 2010
Distribution: Slackware 13.37
Posts: 527
Blog Entries: 3

Rep: Reputation: 126Reputation: 126
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, 07:32 AM   #8
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,896

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

Original Poster
Rep: Reputation: 13
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 09:37 AM.
 
Old 09-08-2012, 08:24 PM   #10
D1ver
Member
 
Registered: Jan 2010
Distribution: Slackware 13.37
Posts: 527
Blog Entries: 3

Rep: Reputation: 126Reputation: 126
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:10 PM
HOWTO Install Latest Firefox and Libreoffice in Debian Squeeze m_yates Debian 17 10-03-2011 09:59 AM
[SOLVED] Latest Mystery: Firefox Launches LibreOffice. cwizardone Slackware 15 08-24-2011 09:27 AM
LXer: LibreOffice Rolls Out the Updates, Latest 3.3.2 LXer Syndicated Linux News 0 03-26-2011 12:11 AM
Linux script to download the latest release of a sourceforge project? dennis123123 Linux - General 1 04-24-2009 12:44 AM


All times are GMT -5. The time now is 12:55 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration