[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem Occurred while creating deb package of libreoffice



Hello Ritu,

Ritu Panwar wrote on 2014-09-29 11:49:

> Hi, I am novice in the process of creating deb package .I tried to create
> deb package for libreoffice for ubuntu 12.04. what i did i got the source

Why do you don't use the "ready for use" packages of libreoffice for
Debian (and also Ubuntu). I always use them directly with a small
download-script (see appended file).

---
Have a nice day.

Joachim (Germany)
#!/bin/sh

VERS="4.3.2"
RCVERS=".2"
VERSION="${VERS}${RCVERS}"
KURZ=$(echo $VERS | sed 's/\.//g')

WGET="wget -c -N -nd"
MYLINK="http://ftp.fau.de/tdf/libreoffice/testing/${VERS}/deb";
MYLINK64="${MYLINK}/x86_64"
MYLINK32="${MYLINK}/x86"

ABLAGE="LibO_${KURZ}"
INSTALL64="v${KURZ}_64bit"
INSTALL32="v${KURZ}_32bit"
NOINSTALL="base/DEBS/nicht-installieren"


[ ! -d $ABLAGE ] && mkdir $ABLAGE
cd $ABLAGE

# 64bit version
${WGET} ${MYLINK64}/LibreOffice_${VERSION}_Linux_x86-64_deb.tar.gz
${WGET} ${MYLINK64}/LibreOffice_${VERSION}_Linux_x86-64_deb_helppack_de.tar.gz
${WGET} ${MYLINK64}/LibreOffice_${VERSION}_Linux_x86-64_deb_helppack_en-GB.tar.gz
${WGET} ${MYLINK64}/LibreOffice_${VERSION}_Linux_x86-64_deb_helppack_fr.tar.gz
${WGET} ${MYLINK64}/LibreOffice_${VERSION}_Linux_x86-64_deb_langpack_de.tar.gz
${WGET} ${MYLINK64}/LibreOffice_${VERSION}_Linux_x86-64_deb_langpack_en-GB.tar.gz
${WGET} ${MYLINK64}/LibreOffice_${VERSION}_Linux_x86-64_deb_langpack_fr.tar.gz

# 32bit version
${WGET} ${MYLINK32}/LibreOffice_${VERSION}_Linux_x86_deb.tar.gz
${WGET} ${MYLINK32}/LibreOffice_${VERSION}_Linux_x86_deb_helppack_de.tar.gz
${WGET} ${MYLINK32}/LibreOffice_${VERSION}_Linux_x86_deb_helppack_en-GB.tar.gz
${WGET} ${MYLINK32}/LibreOffice_${VERSION}_Linux_x86_deb_helppack_fr.tar.gz
${WGET} ${MYLINK32}/LibreOffice_${VERSION}_Linux_x86_deb_langpack_de.tar.gz
${WGET} ${MYLINK32}/LibreOffice_${VERSION}_Linux_x86_deb_langpack_en-GB.tar.gz
${WGET} ${MYLINK32}/LibreOffice_${VERSION}_Linux_x86_deb_langpack_fr.tar.gz

echo
echo "Downloads beendet."
echo

# 64bit version
[ ! -d $INSTALL64 ] && mkdir $INSTALL64
tar -xzf LibreOffice_${VERSION}_Linux_x86-64_deb.tar.gz
mv LibreOffice_${VERSION}_Linux_x86-64_deb                  ${INSTALL64}/base
tar -xzf LibreOffice_${VERSION}_Linux_x86-64_deb_helppack_de.tar.gz
mv LibreOffice_${VERSION}_Linux_x86-64_deb_helppack_de      ${INSTALL64}/help-de
tar -xzf LibreOffice_${VERSION}_Linux_x86-64_deb_helppack_en-GB.tar.gz
mv LibreOffice_${VERSION}_Linux_x86-64_deb_helppack_en-GB   ${INSTALL64}/help-en
tar -xzf LibreOffice_${VERSION}_Linux_x86-64_deb_helppack_fr.tar.gz
mv LibreOffice_${VERSION}_Linux_x86-64_deb_helppack_fr      ${INSTALL64}/help-fr
tar -xzf LibreOffice_${VERSION}_Linux_x86-64_deb_langpack_de.tar.gz
mv LibreOffice_${VERSION}_Linux_x86-64_deb_langpack_de      ${INSTALL64}/lang-de
tar -xzf LibreOffice_${VERSION}_Linux_x86-64_deb_langpack_en-GB.tar.gz
mv LibreOffice_${VERSION}_Linux_x86-64_deb_langpack_en-GB   ${INSTALL64}/lang-en
tar -xzf LibreOffice_${VERSION}_Linux_x86-64_deb_langpack_fr.tar.gz
mv LibreOffice_${VERSION}_Linux_x86-64_deb_langpack_fr      ${INSTALL64}/lang-fr

mkdir ${INSTALL64}/${NOINSTALL}
mv ${INSTALL64}/base/DEBS/*-en-us* ${INSTALL64}/${NOINSTALL}
mv ${INSTALL64}/base/DEBS/*-onlineupdate* ${INSTALL64}/${NOINSTALL}
mv ${INSTALL64}/base/DEBS/*-dict* ${INSTALL64}/${NOINSTALL}

# 32bit version
[ ! -d $INSTALL32 ] && mkdir $INSTALL32
tar -xzf LibreOffice_${VERSION}_Linux_x86_deb.tar.gz
mv LibreOffice_${VERSION}_Linux_x86_deb                  ${INSTALL32}/base
tar -xzf LibreOffice_${VERSION}_Linux_x86_deb_helppack_de.tar.gz
mv LibreOffice_${VERSION}_Linux_x86_deb_helppack_de      ${INSTALL32}/help-de
tar -xzf LibreOffice_${VERSION}_Linux_x86_deb_helppack_en-GB.tar.gz
mv LibreOffice_${VERSION}_Linux_x86_deb_helppack_en-GB   ${INSTALL32}/help-en
tar -xzf LibreOffice_${VERSION}_Linux_x86_deb_helppack_fr.tar.gz
mv LibreOffice_${VERSION}_Linux_x86_deb_helppack_fr      ${INSTALL32}/help-fr
tar -xzf LibreOffice_${VERSION}_Linux_x86_deb_langpack_de.tar.gz
mv LibreOffice_${VERSION}_Linux_x86_deb_langpack_de      ${INSTALL32}/lang-de
tar -xzf LibreOffice_${VERSION}_Linux_x86_deb_langpack_en-GB.tar.gz
mv LibreOffice_${VERSION}_Linux_x86_deb_langpack_en-GB   ${INSTALL32}/lang-en
tar -xzf LibreOffice_${VERSION}_Linux_x86_deb_langpack_fr.tar.gz
mv LibreOffice_${VERSION}_Linux_x86_deb_langpack_fr      ${INSTALL32}/lang-fr

mkdir ${INSTALL32}/${NOINSTALL}
mv ${INSTALL32}/base/DEBS/*-en-us* ${INSTALL32}/${NOINSTALL}
mv ${INSTALL32}/base/DEBS/*-onlineupdate* ${INSTALL32}/${NOINSTALL}
mv ${INSTALL32}/base/DEBS/*-dict* ${INSTALL32}/${NOINSTALL}

echo
echo "Entpacken beendet."
echo

mv ${INSTALL64} ${INSTALL32} ../..

echo
echo "Verschieben beendet."
echo

Attachment: signature.asc
Description: PGP signature


Reply to: