You are not logged in.
Pages: 1
I have modified the 'openoffice-base'-package in Testing to be danish instead, since this is one thing I miss in Arch.
PKGBUILD :
# $Id: PKGBUILD,v 1.12 2005/10/29 23:08:00 whargoul Exp $
# Maintainer: Mikkel Poulsen <mixenberg@hotmail.com>
# Contributor: ?
pkgname=openoffice-base-da
pkgver=2.0.0
pkgrel=1
pkgdesc="OpenOffice devel version in danish"
url="http://da.openoffice.org"
makedepends=('rpmextract')
depends=('x-server' 'desktop-file-utils')
source=(http://mirrors.dotsrc.org/openoffice-danish/OOo_2.0_LinuxIntel_install_da_rpm.tar.gz
template.desktop)
conflicts=('openoffice-spell-it')
install=(openoffice.install)
replaces=('openoffice-en')
build() {
cd $startdir/src/RPMS
# change rpms to tar.gz
for i in *.rpm
do
rpmextract.sh $i
done
# install openoffice files
cd $startdir/src/RPMS/opt
mkdir -p $startdir/pkg/opt
mv openoffice.org2.0 $startdir/pkg/opt/openoffice
# install desktop stuff
cd $startdir/src/RPMS/desktop-integration
rpmextract.sh *freedesktop*.rpm
cp -a usr/ $startdir/pkg/
cd $startdir/pkg/usr/share
# rm -r applnk-redhat
rm applications/*
cp $startdir/pkg/opt/openoffice/share/xdg/* $startdir/pkg/usr/share/applications
cd $startdir/pkg/usr
rm -r bin/
# fix the .desktop files and gnome registry
# cd $startdir/pkg/usr/share/application-registry
# sed -i -e 's|command=openoffice.org-2.0|command=/opt/openoffice2/program/soffice|g' *.applications
cd $startdir/pkg/usr/share/applications
sed -i -e 's|Exec=openoffice.org-2.0|Exec=/opt/openoffice/program/soffice|g' *.desktop
# fix printeradmin desktop file
sed -i -e 's|Exec=/opt/openoffice/program/soffice-printeradmin|Exec=/opt/openoffice/program/spadmin|g' printeradmin.desktop
# fix permissions of files
chmod +rX -R $startdir/pkg/usr
# make symlink to /usr/bin
mkdir -p $startdir/pkg/usr/bin
cd $startdir/pkg/usr/bin
ln -s ../../opt/openoffice/program/soffice soffice
ln -s ../../opt/openoffice/program/spadmin spadmin
# add template desktop file
install -D -m644 $startdir/src/template.desktop $startdir/pkg/usr/share/applications/template.desktop
}
md5sums=()
dictionary.lst :
# 13.10.2004 23:02:48
# 13.10.2004 23:18:50
DICT de AT de_DE
DICT de AT de_AT
DICT de DE de_DE
DICT de DE de_DE_neu
DICT de DE de_DE_comb
DICT de LI de_CH
DICT de LU de_DE
DICT de CH de_CH
HYPH de AT hyph_de_DE
HYPH de DE hyph_de_DE
HYPH de LI hyph_de_DE
HYPH de LU hyph_de_DE
HYPH de CH hyph_de_CH
THES de DE th_de_DE
# 13.10.2004 23:25:17
DICT en AU en_AU
DICT en BZ en_GB
DICT en CA en_CA
DICT en IE en_GB
DICT en JM en_GB
DICT en NZ en_NZ
DICT en PH en_GB
DICT en GB en_GB
DICT en US en_US
DICT en ZA en_GB
DICT en TT en_GB
DICT en ZW en_GB
HYPH en AU hyph_en_GB
HYPH en BZ hyph_en_GB
HYPH en CA hyph_en_CA
HYPH en IE hyph_en_GB
HYPH en JM hyph_en_GB
HYPH en NZ hyph_en_GB
HYPH en PH hyph_en_GB
HYPH en ZA hyph_en_GB
HYPH en TT hyph_en_GB
HYPH en GB hyph_en_GB
HYPH en US hyph_en_US
HYPH en ZW hyph_en_GB
# 13.10.2004 23:26:18
DICT es AR es_ES
DICT es BZ es_ES
DICT es BO es_ES
DICT es CO es_ES
DICT es CR es_ES
DICT es CU es_ES
DICT es DO es_ES
DICT es EC es_ES
DICT es SV es_ES
DICT es GU es_ES
DICT es HN es_ES
DICT es MX es_MX
DICT es NI es_ES
DICT es PA es_ES
DICT es PY es_ES
DICT es PE es_ES
DICT es PR es_ES
DICT es ES es_ES
DICT es UY es_ES
DICT es VE es_ES
HYPH es AR hyph_es_ES
openoffice.install :
# arg 1: the new package version
post_install() {
cat << EOF
==> Hvis du vil have mere information på OpenOfiice kig i:
==> 'http://wiki.archlinux.org/index.php/OpenOffice'
EOF
# make install complete
cd /opt/openoffice/program
./unopkg add --shared
# ./configimport --spool
# make gnome happy
/usr/bin/update-desktop-database > /dev/null 2>&1
}
pre_upgrade() {
#safe old dictionary.lst
mv /opt/openoffice/share/dict/ooo/dictionary.lst
/opt/openoffice/share/dict/ooo/dictionary.old
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install $1
# fix dictionary.lst
rm /opt/openoffice/share/dict/ooo/dictionary.lst
mv /opt/openoffice/share/dict/ooo/dictionary.old
/opt/openoffice/share/dict/ooo/dictionary.lst
}
pre_remove () {
# make uninstall complete
rm -r /opt/openoffice/share/{uno_packages,registry}
}
post_remove () {
# make gnome happy
/usr/bin/update-desktop-database > /dev/null 2>&1
}
op=$1
shift
$op $*
template.desktop :
[Desktop Entry]
Version=0.92
Encoding=UTF-8
MultipleArgs=false
Terminal=0
Icon=openofficeorg-20-writer.png
Exec=/opt/openoffice/program/soffice slot:5500
Categories=Application;Office;X-Red-Hat-Base;X-SuSE-Core-Office;
Type=Application
Name=OpenOffice.org 2.0 From Template
Name[en]=OpenOffice.org 2.0 From Template
Name[de]=OpenOffice.org 2.0 Aus Vorlage
Name[pt]=OpenOffice.org 2.0 Aus Vorlage
Name[ru]=OpenOffice.org 2.0 из
шаблона...
Name[el]=OpenOffice.org 2.0 Î'πό
Ï€Ïότυπο
Name[nl]=OpenOffice.org 2.0 Uit sjabloon
Name[fr]=À partir d'un modèle OpenOffice.org 2.0
Name[es]=A partir de una plantilla de OpenOffice.org 2.0
Name[fi]=OpenOffice.org 2.0 Aus Vorlage
Name[hu]=OpenOffice.org 2.0 sablonból
Name[it]=OpenOffice.org 2.0 Da modello
Name[cs]=Ze Å¡ablony OpenOffice.org 2.0
Name[sk]=Zo šablóny OpenOffice.org 2.0
Name[da]=OpenOffice.org 2.0 Fra skabelon
Name[sv]=Från en OpenOffice.org 2.0-mall
Name[pl]=OpenOffice.org 2.0 Na podstawie szablonu
Name[pt_BR]=A partir de um modelo OpenOffice.org 2.0
Name[ja]=OpenOffice.org 2.0
テンプレートã‹ã‚‰
Name[ko]=OpenOffice.org 2.0 ì„œì‹
파ì¼ë¡œë¶€í„°
Name[zh_CN]=OpenOffice.org 2.0 采ç"¨æ ·å¼
Name[zh_TW]=OpenOffice.org 2.0 採ç"¨æ¨£å¼
Name[tr]=OpenOffice.org 2.0 Åžablondan
Name[ar]=OpenOffice.org 2.0 Aus Vorlage
Name[he]=OpenOffice.org 2.0 Aus Vorlage
Name[ca]=OpenOffice.org 2.0 Aus Vorlage
Name[th]=OpenOffice.org 2.0
จาà¸à¹à¸¡à¹ˆà¹à¸šà¸š
Name[hi_IN]=OpenOffice.org 2.0 Aus Vorlage
Name[et]=OpenOffice.org 2.0 mallist
Name[sl]=OpenOffice.org 2.0 iz predloge
Name[ns]=OpenOffice.org 2.0 go tšwa go Template
Name[af]=OpenOffice.org 2.0 vanaf sjabloon
Name[zu]=I-OpenOffice.org 2.0 esuka Oqwenjini lokuphumelelisa
Name[nb]=OpenOffice.org 2.0 From Template
Name[cy]=OpenOffice.org 2.0 From Template
Name[tn]=OpenOffice.org 2.0 From Template
Name[nn]=OpenOffice.org 2.0 From Template
Name[eu]=OpenOffice.org 2.0 Aus Vorlage
Name[lt]=„OpenOffice.org 2.0“ dokumentas iš
Å¡ablono
Name[kn_IN]=OpenOffice.org 2.0
ಸಿದà³à²§à²µà²¿à²¨à³à²¯à²¾à²¸
ಪà³à²Ÿà²¦à²¿à²‚ದ
Name[gl]=A partir dun modelo de OpenOffice.org 2.0
Remember to place all the stuff in '/var/abs/local/openoffice2'.
Happy hacking.
Arch - It's something refreshing
Offline
Pages: 1