Libreoffice 3.4.x branch:
For 32 bits (x86):
Code: Select all
#Maintainer: Antid Oto <antidoto~at~riseup~dot~net>
#Based on the work of George Vlahavas (Libreoffice 3.3.x SLKBUILD)
pkgname=libreoffice
pkgver=3.4.5
_minorver=3.4.5rc2
pkgrel=1ao
arch=i686
source=("http://download.documentfoundation.org/libreoffice/stable/3.4.5/deb/x86/LibO_3.4.5_Linux_x86_install-deb_en-US.tar.gz")
url=http://www.documentfoundation.org/
doinst() {
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
}
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libreoffice (free office suite)"
"LibreOffice is an Open Source, community-developed, office"
"productivity suite. It includes key desktop applications, such as a"
"word processor, spreadsheet, presentation manager, formula editor and"
"drawing program, with a user interface and feature set similar to"
"other office suites. LibreOffice also works transparently with a"
"variety of file formats, including Microsoft Office File Formats."
""
"libreoffice home: http://www.documentfoundation.org/"
)
build() {
# Unpack DEBS
cd $startdir/src/LibO_${_minorver}_Linux_x86_install-deb_en-US/DEBS
for i in `ls *.deb`; do
ar x $i
tar xf data.tar.gz
rm data.tar.gz control.tar.gz
done
# Unpack desktop-integration DEB and install icons and mime
# files
cd desktop-integration
ar x libreoffice*.deb
tar xf data.tar.gz
mkdir -p $startdir/pkg/usr/share
mv usr/share/icons $startdir/pkg/usr/share/
mv usr/share/mime $startdir/pkg/usr/share/
mv usr/share/mimelnk $startdir/pkg/usr/share/
cd ..
# Install program files
mkdir -p $startdir/pkg/usr/lib${LIBDIRSUFFIX}
mv opt/* $startdir/pkg/usr/lib${LIBDIRSUFFIX}/
mkdir -p $startdir/pkg/usr/share/applications
mv $startdir/pkg/usr/lib${LIBDIRSUFFIX}/libreoffice3.4/share/xdg/*.desktop $startdir/pkg/usr/share/applications/
rm $startdir/pkg/usr/share/applications/{startcenter,qstart,javafilter}.desktop
rmdir $startdir/pkg/usr/lib${LIBDIRSUFFIX}/libreoffice3.4/share/xdg
mkdir -p $startdir/pkg/usr/bin
(
cd $startdir/pkg/usr/bin
ln -s ../lib${LIBDIRSUFFIX}/libreoffice3.4/program/soffice soffice
)
echo "#!/bin/sh" > $startdir/pkg/usr/bin/libreoffice
echo "exec /usr/lib${LIBDIRSUFFIX}/libreoffice3.4/program/soffice \"\$@\"" >> $startdir/pkg/usr/bin/libreoffice
chmod 755 $startdir/pkg/usr/bin/libreoffice
echo "#!/bin/sh" > $startdir/pkg/usr/bin/libreoffice-printeradmin
echo "exec /usr/lib${LIBDIRSUFFIX}/libreoffice3.4/program/spadmin" > $startdir/pkg/usr/bin/libreoffice-printeradmin
chmod 755 $startdir/pkg/usr/bin/libreoffice-printeradmin
cd $startdir/pkg/usr/bin
for APP in base calc draw impress math padmin writer; do
ln -s /usr/lib${LIBDIRSUFFIX}/libreoffice3.4/program/s${APP} lo${APP}
done
# Fix para los execs de los archivos .desktop
cd $startdir/pkg/usr/share/applications/
for APP in base calc draw impress math printeradmin writer; do
sed -i 's/Exec=libreoffice3.4/Exec=libreoffice/' $APP.desktop ;
done
# we don't need the included fonts, we already have packages for
# them anyway. We want to keep the opens___.ttf and
# fc_local.conf files.
find \
$startdir/pkg/usr/lib${LIBDIRSUFFIX}/libreoffice3.4/basis[0-9].[0-9]/share/fonts/truetype/ \
! -name "opens___.ttf" ! -name "fc_local.conf" \
-type f \
-exec rm {} \;
# these dictionaries are not needed either. They are included in
# the respective langpacks.
rm -rf $startdir/pkg/usr/lib${LIBDIRSUFFIX}/libreoffice3.4/share/extensions/dict-{es,fr}
chown -R root:root $startdir/pkg
}
Code: Select all
#Maintainer: Antid Oto <antidoto~at~riseup~dot~net>
#Based on the work of George Vlahavas (Libreoffice 3.3.x SLKBUILD)
pkgname=libreoffice
pkgver=3.4.5
_minorver=3.4.5rc2
pkgrel=1ao
arch=x86_64
source=("http://download.documentfoundation.org/libreoffice/stable/3.4.5/deb/x86_64/LibO_3.4.5_Linux_x86-64_install-deb_en-US.tar.gz")
url=http://www.documentfoundation.org/
doinst() {
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
}
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libreoffice (free office suite)"
"LibreOffice is an Open Source, community-developed, office"
"productivity suite. It includes key desktop applications, such as a"
"word processor, spreadsheet, presentation manager, formula editor and"
"drawing program, with a user interface and feature set similar to"
"other office suites. LibreOffice also works transparently with a"
"variety of file formats, including Microsoft Office File Formats."
""
"libreoffice home: http://www.documentfoundation.org/"
)
build() {
# Unpack DEBS
cd $startdir/src/LibO_${_minorver}_Linux_x86-64_install-deb_en-US/DEBS
for i in `ls *.deb`; do
ar x $i
tar xf data.tar.gz
rm data.tar.gz control.tar.gz
done
# Unpack desktop-integration DEB and install icons and mime
# files
cd desktop-integration
ar x libreoffice*.deb
tar xf data.tar.gz
mkdir -p $startdir/pkg/usr/share
mv usr/share/icons $startdir/pkg/usr/share/
mv usr/share/mime $startdir/pkg/usr/share/
mv usr/share/mimelnk $startdir/pkg/usr/share/
cd ..
# Install program files
mkdir -p $startdir/pkg/usr/lib${LIBDIRSUFFIX}
mv opt/* $startdir/pkg/usr/lib${LIBDIRSUFFIX}/
mkdir -p $startdir/pkg/usr/share/applications
mv $startdir/pkg/usr/lib${LIBDIRSUFFIX}/libreoffice3.4/share/xdg/*.desktop $startdir/pkg/usr/share/applications/
rm $startdir/pkg/usr/share/applications/{startcenter,qstart,javafilter}.desktop
rmdir $startdir/pkg/usr/lib${LIBDIRSUFFIX}/libreoffice3.4/share/xdg
mkdir -p $startdir/pkg/usr/bin
(
cd $startdir/pkg/usr/bin
ln -s ../lib${LIBDIRSUFFIX}/libreoffice3.4/program/soffice soffice
)
echo "#!/bin/sh" > $startdir/pkg/usr/bin/libreoffice
echo "exec /usr/lib${LIBDIRSUFFIX}/libreoffice3.4/program/soffice \"\$@\"" >> $startdir/pkg/usr/bin/libreoffice
chmod 755 $startdir/pkg/usr/bin/libreoffice
echo "#!/bin/sh" > $startdir/pkg/usr/bin/libreoffice-printeradmin
echo "exec /usr/lib${LIBDIRSUFFIX}/libreoffice3.4/program/spadmin" > $startdir/pkg/usr/bin/libreoffice-printeradmin
chmod 755 $startdir/pkg/usr/bin/libreoffice-printeradmin
cd $startdir/pkg/usr/bin
for APP in base calc draw impress math padmin writer; do
ln -s /usr/lib${LIBDIRSUFFIX}/libreoffice3.4/program/s${APP} lo${APP}
done
# Fix para los execs de los archivos .desktop
cd $startdir/pkg/usr/share/applications/
for APP in base calc draw impress math printeradmin writer; do
sed -i 's/Exec=libreoffice3.4/Exec=libreoffice/' $APP.desktop ;
done
# we don't need the included fonts, we already have packages for
# them anyway. We want to keep the opens___.ttf and
# fc_local.conf files.
find \
$startdir/pkg/usr/lib${LIBDIRSUFFIX}/libreoffice3.4/basis[0-9].[0-9]/share/fonts/truetype/ \
! -name "opens___.ttf" ! -name "fc_local.conf" \
-type f \
-exec rm {} \;
# these dictionaries are not needed either. They are included in
# the respective langpacks.
rm -rf $startdir/pkg/usr/lib${LIBDIRSUFFIX}/libreoffice3.4/share/extensions/dict-{es,fr}
chown -R root:root $startdir/pkg
}
For 32 bits (x86):
Code: Select all
#Maintainer: Antid Oto <antidoto~at~riseup~dot~net>
#Based on the work of George Vlahavas (Libreoffice 3.3.x SLKBUILD)
pkgname=libreoffice
pkgver=3.5.0
_minorver=3.5.0rc3
pkgrel=1ao
arch=i686
source=("http://download.documentfoundation.org/libreoffice/stable/3.5.0/deb/x86/LibO_3.5.0_Linux_x86_install-deb_en-US.tar.gz")
url=http://www.documentfoundation.org/
doinst() {
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
}
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libreoffice (free office suite)"
"LibreOffice is an Open Source, community-developed, office"
"productivity suite. It includes key desktop applications, such as a"
"word processor, spreadsheet, presentation manager, formula editor and"
"drawing program, with a user interface and feature set similar to"
"other office suites. LibreOffice also works transparently with a"
"variety of file formats, including Microsoft Office File Formats."
""
"libreoffice home: http://www.documentfoundation.org/"
)
build() {
# Unpack DEBS
cd $startdir/src/LibO_${_minorver}_Linux_x86_install-deb_en-US/DEBS
for i in `ls *.deb`; do
ar x $i
tar xf data.tar.gz
rm data.tar.gz control.tar.gz
done
# Unpack desktop-integration DEB and install icons and mime
# files
cd desktop-integration
ar x libreoffice*.deb
tar xf data.tar.gz
mkdir -p $startdir/pkg/usr/share
mv usr/share/icons $startdir/pkg/usr/share/
mv usr/share/mime $startdir/pkg/usr/share/
mv usr/share/mimelnk $startdir/pkg/usr/share/
cd ..
# Install program files
mkdir -p $startdir/pkg/usr/lib${LIBDIRSUFFIX}
mv opt/* $startdir/pkg/usr/lib${LIBDIRSUFFIX}/
mkdir -p $startdir/pkg/usr/share/applications
mv $startdir/pkg/usr/lib${LIBDIRSUFFIX}/libreoffice3.5/share/xdg/*.desktop $startdir/pkg/usr/share/applications/
rm $startdir/pkg/usr/share/applications/{startcenter,qstart,javafilter}.desktop
rmdir $startdir/pkg/usr/lib${LIBDIRSUFFIX}/libreoffice3.5/share/xdg
mkdir -p $startdir/pkg/usr/bin
(
cd $startdir/pkg/usr/bin
ln -s ../lib${LIBDIRSUFFIX}/libreoffice3.5/program/soffice soffice
)
echo "#!/bin/sh" > $startdir/pkg/usr/bin/libreoffice
echo "exec /usr/lib${LIBDIRSUFFIX}/libreoffice3.5/program/soffice \"\$@\"" >> $startdir/pkg/usr/bin/libreoffice
chmod 755 $startdir/pkg/usr/bin/libreoffice
echo "#!/bin/sh" > $startdir/pkg/usr/bin/libreoffice-printeradmin
echo "exec /usr/lib${LIBDIRSUFFIX}/libreoffice3.5/program/spadmin" > $startdir/pkg/usr/bin/libreoffice-printeradmin
chmod 755 $startdir/pkg/usr/bin/libreoffice-printeradmin
cd $startdir/pkg/usr/bin
for APP in base calc draw impress math padmin writer; do
ln -s /usr/lib${LIBDIRSUFFIX}/libreoffice3.5/program/s${APP} lo${APP}
done
# Fix para los execs de los archivos .desktop
cd $startdir/pkg/usr/share/applications/
for APP in base calc draw impress math printeradmin writer; do
sed -i 's/Exec=libreoffice3.5/Exec=libreoffice/' $APP.desktop ;
done
# we don't need the included fonts, we already have packages for
# them anyway. We want to keep the opens___.ttf and
# fc_local.conf files.
find \
$startdir/pkg/usr/lib${LIBDIRSUFFIX}/libreoffice3.5/share/fonts/truetype/ \
! -name "opens___.ttf" ! -name "fc_local.conf" \
-type f \
-exec rm {} \;
# these dictionaries are not needed either. They are included in
# the respective langpacks.
rm -rf $startdir/pkg/usr/lib${LIBDIRSUFFIX}/libreoffice3.5/share/extensions/dict-{es,fr,an}
chown -R root:root $startdir/pkg
}
Code: Select all
#Maintainer: Antid Oto <antidoto~at~riseup~dot~net>
#Based on the work of George Vlahavas (Libreoffice 3.3.x SLKBUILD)
pkgname=libreoffice
pkgver=3.5.0
_minorver=3.5.0rc3
pkgrel=1ao
arch=x86_64
source=("http://download.documentfoundation.org/libreoffice/stable/3.5.0/deb/x86_64/LibO_3.5.0_Linux_x86-64_install-deb_en-US.tar.gz")
url=http://www.documentfoundation.org/
doinst() {
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
}
slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libreoffice (free office suite)"
"LibreOffice is an Open Source, community-developed, office"
"productivity suite. It includes key desktop applications, such as a"
"word processor, spreadsheet, presentation manager, formula editor and"
"drawing program, with a user interface and feature set similar to"
"other office suites. LibreOffice also works transparently with a"
"variety of file formats, including Microsoft Office File Formats."
""
"libreoffice home: http://www.documentfoundation.org/"
)
build() {
# Unpack DEBS
cd $startdir/src/LibO_${_minorver}_Linux_x86-64_install-deb_en-US/DEBS
for i in `ls *.deb`; do
ar x $i
tar xf data.tar.gz
rm data.tar.gz control.tar.gz
done
# Unpack desktop-integration DEB and install icons and mime
# files
cd desktop-integration
ar x libreoffice*.deb
tar xf data.tar.gz
mkdir -p $startdir/pkg/usr/share
mv usr/share/icons $startdir/pkg/usr/share/
mv usr/share/mime $startdir/pkg/usr/share/
mv usr/share/mimelnk $startdir/pkg/usr/share/
cd ..
# Install program files
mkdir -p $startdir/pkg/usr/lib${LIBDIRSUFFIX}
mv opt/* $startdir/pkg/usr/lib${LIBDIRSUFFIX}/
mkdir -p $startdir/pkg/usr/share/applications
mv $startdir/pkg/usr/lib${LIBDIRSUFFIX}/libreoffice3.5/share/xdg/*.desktop $startdir/pkg/usr/share/applications/
rm $startdir/pkg/usr/share/applications/{startcenter,qstart,javafilter}.desktop
rmdir $startdir/pkg/usr/lib${LIBDIRSUFFIX}/libreoffice3.5/share/xdg
mkdir -p $startdir/pkg/usr/bin
(
cd $startdir/pkg/usr/bin
ln -s ../lib${LIBDIRSUFFIX}/libreoffice3.5/program/soffice soffice
)
echo "#!/bin/sh" > $startdir/pkg/usr/bin/libreoffice
echo "exec /usr/lib${LIBDIRSUFFIX}/libreoffice3.5/program/soffice \"\$@\"" >> $startdir/pkg/usr/bin/libreoffice
chmod 755 $startdir/pkg/usr/bin/libreoffice
echo "#!/bin/sh" > $startdir/pkg/usr/bin/libreoffice-printeradmin
echo "exec /usr/lib${LIBDIRSUFFIX}/libreoffice3.5/program/spadmin" > $startdir/pkg/usr/bin/libreoffice-printeradmin
chmod 755 $startdir/pkg/usr/bin/libreoffice-printeradmin
cd $startdir/pkg/usr/bin
for APP in base calc draw impress math padmin writer; do
ln -s /usr/lib${LIBDIRSUFFIX}/libreoffice3.5/program/s${APP} lo${APP}
done
# Fix para los execs de los archivos .desktop
cd $startdir/pkg/usr/share/applications/
for APP in base calc draw impress math printeradmin writer; do
sed -i 's/Exec=libreoffice3.5/Exec=libreoffice/' $APP.desktop ;
done
# we don't need the included fonts, we already have packages for
# them anyway. We want to keep the opens___.ttf and
# fc_local.conf files.
find \
$startdir/pkg/usr/lib${LIBDIRSUFFIX}/libreoffice3.5/share/fonts/truetype/ \
! -name "opens___.ttf" ! -name "fc_local.conf" \
-type f \
-exec rm {} \;
# these dictionaries are not needed either. They are included in
# the respective langpacks.
rm -rf $startdir/pkg/usr/lib${LIBDIRSUFFIX}/libreoffice3.5/share/extensions/dict-{es,fr,an}
chown -R root:root $startdir/pkg
}
LO 3.4.x:
32 bits:
http://download.documentfoundation.org/ ... -US.tar.gz
http://download.documentfoundation.org/ ... gz.torrent (Torrent)
64 bits:
http://download.documentfoundation.org/ ... -US.tar.gz
http://download.documentfoundation.org/ ... gz.torrent (Torrent)
LO 3.5.x:
32 bits:
http://download.documentfoundation.org/ ... -US.tar.gz
http://download.documentfoundation.org/ ... gz.torrent (Torrent)
64 bits:
http://download.documentfoundation.org/ ... -US.tar.gz
http://download.documentfoundation.org/ ... gz.torrent (Torrent)
For Libreoffice in your language using the gapan's SlackBuild from Salix repository (change version to the chose brand and ARCH variable to x86 or x86-64 as appropriate):
http://salix.enialis.net/i486/13.37/sou ... SlackBuild
Remember: To install LibreOffice copy and paste this script into a new file with the name SLKBUILD. Make sure the tarball is in the same location as the script. Then open a terminal for that folder and type: fakeroot slkbuild-X
That's it. You will see your new package created in the same location. Install it with the tools you want (I prefer spkg). Then you can delete things that are left, although I prefer to keep all for another time (for example, using the same slkbuild for a new release). You choose.
Try it, please. Greetings.
UPDATE 16/01/2012: Libreoffice 3.4.5 added.
UPDATE 19/01/2012: SLKBUILD for 64bits added. Not yet tested. If you have this processor architecture, try it please.
UPDATE 15/02/2012: The LibreOffice project has changed the paths to the files and fonts. Configuration files are now in "HOME/.config/libreoffice". Changes added to the script.