|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2009,2010,2011 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2009,2010,2011,2012 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -34,7 +34,7 @@ else
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
VERSION=${VERSION:-3.4.0} |
|
|
|
|
VERSION=${VERSION:-3.5.0} |
|
|
|
|
ARCHIVE=${ARCHIVE:-LibO_${VERSION}_Linux_${SRCARCH}_install-rpm_en-US.tar.gz} |
|
|
|
|
WGET=${WGET:-http://download.documentfoundation.org/libreoffice/stable/$VERSION/rpm/$ARCH/$ARCHIVE} |
|
|
|
|
|
|
|
|
@ -77,7 +77,7 @@ cd $NAME
|
|
|
|
|
|
|
|
|
|
# Extract the RPMs |
|
|
|
|
cd RPMS |
|
|
|
|
mv desktop-integration/libreoffice3.4-freedesktop-menus-3.4-12.noarch.rpm . |
|
|
|
|
mv desktop-integration/libreoffice3.5-freedesktop-menus-3.5-13.noarch.rpm . |
|
|
|
|
for FILE in *.rpm ; do rpm2cpio < $FILE | cpio -imdv ; done |
|
|
|
|
mkdir -p $PKG |
|
|
|
|
mv opt usr $PKG |
|
|
|
@ -88,13 +88,13 @@ cd $PKG/usr/bin
|
|
|
|
|
for FILE in \ |
|
|
|
|
sbase scalc sdraw simpress smath soffice spadmin swriter unopkg ; do |
|
|
|
|
rm -f $FILE |
|
|
|
|
ln -sf /opt/libreoffice3.4/program/$FILE . ; |
|
|
|
|
ln -sf /opt/libreoffice3.5/program/$FILE . ; |
|
|
|
|
done |
|
|
|
|
cd - |
|
|
|
|
|
|
|
|
|
# Place docs at the expected locations |
|
|
|
|
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
cd $PKG/opt/libreoffice3.4 |
|
|
|
|
cd $PKG/opt/libreoffice3.5 |
|
|
|
|
mv CREDITS.odt *LICENSE* readmes $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
find $PKG/usr/doc/$NAMEPKG-$VERSION -type f -exec chmod 644 {} \; |
|
|
|
|
cd - |
|
|
|
|