Conclusione:
OOo.SlackBuild
Codice: Seleziona tutto
#!/bin/sh
# Copyright 2009 Loris Vincenzi (http://www.slacky.eu)
# All rights reserved.
#
# Heavily based on the Slackware 12.2 SlackBuild
# http://www.openoffice.org/
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
CWD=`pwd`
TMP=${TMP:-/tmp/tgz}
PKG=$TMP/package-ooo
NAME=OOo
VERSION=3.1.0
CHOST=i486
ARCH=${ARCH:-i486}
BUILD=1ld
SOURCES=$NAME-build-$VERSION
COMPONENT="binfilter core extensions l10n system testautomation"
URL=http://ooo.mirror.garr.it/mirrors/openoffice/stable/$VERSION/
#Speedup
export SMP="6"
export nodep=true
export NO_HIDS=true
SOURCES=""
for file in $COMPONENT
do
SOURCES+="$NAME"_"$VERSION"_src_"$file".tar.bz2" "
done
for source in $SOURCES
do
if [ ! -e $source ]; then
wget -c $URL$source
if [[ "$?" > "0" ]]
then
echo -e "Sorgente $source non trovato\n"
exit
fi
fi
done
# Scarico i sorgenti di Mozilla
if [ ! -e mozilla-source-1.7.5.tar.bz2 ]; then
wget http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.7.5/source/mozilla-source-1.7.5.tar.bz2
fi
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
elif [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2"
fi
if [ ! -d $TMP ]; then
mkdir -p $TMP
fi
if [ ! -d $PKG ]; then
mkdir -p $PKG
fi
cd $TMP
## Scarico i Sorgenti
for source in $SOURCES
do
if [ -e $CWD/$source ]; then
tar xjvf $CWD/$source
if [[ "$?" > "0" ]]
then
echo -e "Sorgente $source non e' un tar.bz2\n"
exit
fi
fi
done
SOURCETGZ=`find . -type d -maxdepth 1 -exec basename {} \; | grep OOO`
cd $SOURCETGZ
(
cd moz/download
#echo `pwd`
if [ ! -e mozilla-source-1.7.5.tar.bz2 ]; then
cp $CWD/mozilla-source-1.7.5.tar.bz2 .
fi
)
## Sistemo i Permessi
find . \( -perm 777 -o -perm 775 -o -perm 711 \) -exec chmod 755 {} \;
find . \( -perm 700 -o -perm 555 -o -perm 511 \) -exec chmod 755 {} \;
find . \( -perm 666 -o -perm 664 -o -perm 600 \) -exec chmod 644 {} \;
find . \( -perm 444 -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
chown -R root:root .
if [ "$ARCH" = "x86_64" ]; then
EXTRAOPTS="--without-stlport"
# fix to build with SUN jdk/jre and OpenJDK
# http://qa.openoffice.org/issues/show_bug.cgi?id=74749
sed -i "s:lib64\/libjpeg.so:lib\/libjpeg.so:g" solenv/inc/libs.mk || exit 1
else EXTRAOPTS="--with-stlport"
fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure --prefix=/usr \
--exec-prefix=/usr \
--datarootdir=/usr/share \
--docdir=/usr/doc/$NAME-$VERSION \
--sysconfdir=/etc \
--mandir=/usr/man \
--disable-binfilter \
--enable-cairo \
--enable-crashdump=no \
--enable-cups \
--enable-dbus \
--disable-dbgutil \
--disable-debug \
--disable-evolution2 \
--disable-gconf \
--enable-gcjaot \
--enable-gio \
--disable-gnome-vfs \
--enable-gtk \
--disable-kde \
--enable-ldap \
--disable-lockdown \
--enable-minimizer \
--enable-neon \
--disable-odk \
--enable-ogltrans \
--enable-opengl \
--disable-pam \
--disable-pam-link \
--enable-pdfimport \
--enable-presenter-console \
--disable-qadevooo \
--enable-report-builder \
--disable-symbols \
--enable-vba \
--disable-xrender-link \
--disable-werror \
--enable-wiki-publisher \
--without-afms \
--with-agg \
--with-alloc=system \
--with-ant-home=/usr/lib/ant \
--with-build-version="$VERSION-$BUILD Slackware Built" \
--with-dict=ALL \
--with-fonts \
--without-gpc \
--with-hsqldb-jar=/usr/share/java/hsqldb.jar \
--with-installed-ooo-dirname=openoffice.org3 \
--with-java \
--with-jdk-home="/usr/lib/java" \
--with-lang="it" \
--with-lucene-analyzers-jar=/usr/share/java/lucene-analyzers-2.4.1.jar \
--with-lucene-core-jar=/usr/share/java/lucene-core-2.4.1.jar \
--with-mozilla-toolkit=gtk2 \
--without-myspell-dicts \
--without-nas \
--with-openldap \
--with-package-format=native \
--without-ppds \
--with-stlport \
--with-system-agg \
--with-system-cairo \
--with-system-curl \
--with-system-db \
--with-system-expat \
--with-system-freetype \
--with-system-hsqldb \
--with-system-icu \
--with-system-jpeg \
--with-system-libxml \
--with-system-libxslt \
--with-system-libwpd \
--with-system-lucene \
--with-system-mozilla=libxul \
--with-system-mspack \
--with-system-neon \
--with-system-openssl \
--with-system-poppler \
--with-system-python \
--with-system-redland \
--with-system-sane-header \
--with-system-sndfile \
--with-system-stdlibs \
--with-system-vigra \
--with-system-xrender-headers \
--with-system-zlib \
--with-unix-wrapper=soffice \
--with-use-shell=bash \
--with-vba-package-format="builtin" \
--with-vendor="Slacky.eu by Diego" \
--with-serializer-jar=/usr/share/java/serializer.jar \
--with-system-xalan \
--with-system-xerces \
--with-system-xml-apis \
--with-xalan-jar=/usr/share/java/xalan.jar \
--with-xerces-jar=/usr/share/java/xercesImpl.jar \
--with-xml-apis-jar=/usr/share/java/xml-apis.jar \
--without-system-beanshell \
--without-system-saxon \
--without-system-vigra \
--without-system-mozilla \
--with-x \
$EXTRAOPTS || exit 1
(
# Setup environment for build
if [ "$ARCH" = "x86_64" ]; then
source LinuxX86-64Env.Set.sh
else
source LinuxX86Env.Set.sh
fi
# Build dmake utility
./bootstrap || exit 1
dmake -P${SMP} all || exit 1
)
# Copia file
cd $PKG
cp -rf $TMP/$SOURCETGZ/instsetoo_native/unxlngi6.pro/OpenOffice/native/install/it/linux-2.6-intel/buildroot/opt . || exit 1
tar xzvf $TMP/$SOURCETGZ/sysui/unxlngi6.pro/bin/desktop-integration/openoffice*.tgz || exit 1
# Icone
(
mkdir -p $PKG/usr/share/pixmaps
cd $PKG/opt/kde/share/icons/hicolor/48x48/apps/
ICONS=`find . -name "*.png"`
cd $PKG/usr/share/pixmaps
for file in $ICONS
do
linc=`basename $file`
ln -sf /opt/kde/share/icons/hicolor/48x48/apps/$linc $linc
done
)
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded --strip-debug 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded --strip-debug 2> /dev/null
mkdir -p $PKG/usr/doc/$NAME-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/slack-desc > $PKG/usr/doc/$NAME-$VERSION/slack-desc
cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild
requiredbuilder -v -y -s $CWD $PKG
makepkg -l y -c n $CWD/$NAME-$VERSION-$ARCH-$BUILD.tgz
if [ "$1" = "--cleanup" ]; then
rm -rf $TMP
fi
slack-desc
Codice: Seleziona tutto
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|' on
# the right side marks the last column you can put a character in. You must make
# exactly 11 lines for the formatting to be correct. It's also customary to
# leave one space after the ':'.
|-----handy-ruler-------------------------------------------------------|
OOo: OpenOffice.org
OOo:
OOo: E' una suite per ufficio completa, rilasciata con una licenza libera
OOo: e Open Source che ne consente la distribuzione gratuita. Legge e
OOo: scrive file nei formati utilizzati dai prodotti più diffusi sul
OOo: mercato e, a garanzia della futura accessibilità dei dati, nel formato
OOo: OpenDocument, standard ISO. Consente inoltre l'esportazione in formato
OOo: PDF.
OOo:
OOo: http://www.openoffice.org/
OOo: Packager: diego @ slacky.it
e con questo ho finito.
In settimana vedo di mandare a Loris i tgz delle dipendenze (che hanno un size un po' piu' umano)
Ciao a tutti
Diego
p.s.
dimenticavo, forse a qualcuno puo' essere utile alche lo
slack-required
Codice: Seleziona tutto
agg >= 2.4-i486-3as | raptor >= 1.4.18-i486-2sl
atk >= 1.23.5-i486-1
cairo >= 1.6.4-i486-1
curl >= 7.19.4-i486-1_slack12.2
cxxlibs >= 6.0.9-i486-1 | gcc-g++ >= 4.2.4-i486-1
cyrus-sasl >= 2.1.23-i486-1_slack12.2
db44 >= 4.4.20-i486-2
dbus >= 1.2.6-i486-1
dbus-glib >= 0.78-i486-1
expat >= 2.0.1-i486-1
fontconfig >= 2.6.0-i486-2
freetype >= 2.3.7-i486-1
gcc >= 4.2.4-i486-1
glib2 >= 2.16.6-i486-2_slack12.2
glibc-solibs >= 2.7-i486-17
gmp >= 4.2.3-i486-1
gtk+2 >= 2.12.12-i486-1
icu >= 4.2.1-i486-2sl | raptor >= 1.4.18-i486-2sl
libICE >= 1.0.4-i486-1
libSM >= 1.0.3-i486-1
libX11 >= 1.1.5-i486-1
libXau >= 1.0.4-i486-1
libXaw >= 1.0.4-i486-1
libXcomposite >= 0.4.0-i486-1
libXcursor >= 1.1.9-i486-1
libXdamage >= 1.1.1-i486-1
libXdmcp >= 1.0.2-i486-1
libXext >= 1.0.4-i486-1
libXfixes >= 4.0.3-i486-1
libXi >= 1.1.3-i486-1
libXinerama >= 1.0.3-i486-1
libXmu >= 1.0.4-i486-1
libXp >= 1.0.0-i486-1
libXpm >= 3.5.7-i486-1
libXrandr >= 1.2.3-i486-1
libXrender >= 0.9.4-i486-1
libXt >= 1.0.5-i486-1
libidn >= 1.5-i486-1
libjpeg >= 6b-i486-5
libmspack >= 0.0.20060920alpha-i486-1as
libpng >= 1.2.37-i486-1_slack12.2
libwpd >= 0.8.14-i486-1
libxcb >= 1.1-i486-1
libxml2 >= 2.6.32-i486-2
libxslt >= 1.1.24-i486-1
mpfr >= 2.3.1-i486-1
neon >= 0.28.3-i486-1
net-tools >= 1.60-i486-2 | util-linux-ng >= 2.14.1-i486-1
openldap-client >= 2.3.43-i486-1
openssl >= 0.9.8i-i486-3_slack12.2 | openssl-solibs >= 0.9.8i-i486-3_slack12.2
pango >= 1.20.5-i486-1
perl >= 5.10.0-i486-1
pixman >= 0.12.0-i486-1
python >= 2.5.2-i486-4
raptor >= 1.4.18-i486-2sl
rasqal >= 0.9.16-i486-2as
redland >= 1.0.9-i486-1as
zlib >= 1.2.3-i486-2
p.p.s
per chi utilizza DM come Gnome/Kde
puo' mettere --enable-gconf e/o --enable-kde
al posto dei rispettivi --disable-*