You are not logged in.

#1 2004-10-04 23:17:43

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

openoffice.org - ux.pl - optimized for Polish

This was waiting for some time on my list. It's a precompiled and  improved version of OpenOffice.org for Polish language. It includes dictionaries, thezaurus, localized guis, etc. etc. Just like other languages versions.
Since there is a very little chance that this package will go to any official repo the rest is in Polish :-)

pkgname=openoffice-uxpl
pkgver=1.1.2
_uxver=1.1.2-2
pkgrel=1
pkgdesc="Alternative Polish version of OpenOffice.org prepared and improved by ux.pl"
url="http://www.ux.pl"
depends=('x-server' 'pam' 'libart-lgpl')
makedepends=('j2sdk' 'zip' 'unzip' 'tcsh')
provides=('openoffice')
source=(http://213.227.72.1/~tom/OOo-${_uxver}-linux-ux-pl.tgz)
md5sums=('02d32454c632c696f64d05c96ef2c264')

# Alternative source urls
# source=(ftp://nest.ux.com.pl/pub/OOo-${_uxver}-linux-ux.pl.tgz)
# source=(ftp://sunsite.icm.edu.pl/packages/OpenOffice/ux/OOo-${_uxver}-linux-ux.pl.tgz)
# Changelog is available at
# http://www.ux.pl/openoffice/chlog.txt
# install=${pkgname}.install

build() {

    # Installing from a precompiled binary package

    cd $startdir/src/normal

    install -d -m755 $startdir/pkg/opt
    install -d -m755 $startdir/pkg/usr/bin

    sed -i "s/^oo_home=.*$/oo_home=${pkgname}/g" 
        $startdir/src/normal/install

    ./install --prefix=$startdir/pkg/opt

    cd $startdir/pkg/usr/bin
    ln -s ../../opt/${pkgname}/program/soffice soffice-uxpl

    cd $startdir/pkg/opt/${pkgname}/program
    mv libgcc_s.so.1 libgcc_s.so.1.old
    ln -s /usr/lib/libgcc_s.so.1 libgcc_s.so.1

    cd $startdir/pkg/opt/${pkgname}/share/kde/net
    sed -i 's/^Exec=.*/program/(.*)$/Exec="/opt/TEMPORARYNAME/program/1/g' 
        *.desktop
    sed -i "s/TEMPORARYNAME/${pkgname}/g" *.desktop

    cd $startdir/pkg/opt/${pkgname}/share/gnome/net
    sed -i 's/^Exec=.*/program/(.*)$/Exec=/opt/TEMPORARYNAME/program/1/g' 
        *.desktop
    sed -i 's/^Icon=.*/share/icons/(.*)$/Icon=/opt/TEMPORARYNAME/share/icons/1/g' 
        *.desktop
    sed -i "s/TEMPORARYNAME/${pkgname}/g" *.desktop

}

Na forum mozna znalesc rozne wersje pkgbuildow dla open office'a. Niestety wiekszosc z nich rozni sie nieco. Probowalem je uproscic i wybrac wszystkie dobre rzeczy. Oczywiscie pkgbuild jest dostosowany do wersji z www.ux.pl (wybralem ta bo wydaje sie najlepiej dostosowana do polskich warunkow). Teoretycznie mozna tez poprosic ich o zrodla ale i tak nie mam mocy/czasu na taka zabawe. Z wiekszosci wypowiedzi wynika ze wersja rekompilowana samodzielnie i ta z paczek binarnych w przypadku ux.pl niewiele sie rozni (mozna np. osiagnac lepszy czas startu - podobno). Jesli jednak ktos zauwazy blad albo mozliwosc poprawienia czegos to oczywiscie jestem otwarty na propozycje :-)

Kilka uwag:
1. W zasadzie paczka powinna zawierac dodatkowy plik i skrypt instalacyjny ktory kopuje i ustawia pare rzeczy w gnome/kde (jesli jest zaintalowany). Na razie postanowilem nie komplikowac pkgbuilda (czytaj: lenistwo zwyciezylo :-)) Wiec jesli kogos to interesuje to moze wykonac te pare czynnosci recznie. Wszystko jest w pliku install z oryginalnej paczki ooo w /var/abs/extra/office/openoffice (trzeba ewentualnie pozmieniac sciezki z /opt/openoffice na /opt/openoffice-uxpl).

2. Nie wprowadzalem konfliktu do pkgbuilda z innymi wersjami openoffice bo prawdopodobnie da sie go uzywac rownolegle. Jedyny problem to dwie instalacje dla tego samego uzytkownika w jego katalogu domowym. Nie testowalem wiec nie wiem co i jak dziala. Uwagi mile widziane. Po zainstalowaniu paczki trzeba uruchomic jako uzytkownik /opt/openoffice-uxpl/setup i wybrac instalacje na workstacji - opcja domyslna). Osobiscie proponuje jako katalog w /home podac EDIT: powinno byc ~/openoffice-uxpl (bylo /home/openoffice-uxpl) zeby ominac ewentualne konflikty z innymi wersjami (EDIT: prawodpodobnie da sie to ominac - patrz komentarze nizej: moze zajsc koniecznosc usuniecia/przeniesienia pliku ~/.sversionrc wczesniej). Po instalacji mozna wiec bedzie uruchomic ooo przy pomocy ~/openoffice-uxpl/soffice.

3. Domyslna czcionka dla menu interfejsu jest bardzo brzydka i slabo wyglada (to pierwsza rzecz ktora nie przypada do gustu zaraz po uruchomieniu). Mozna to latwo zmienic w menu Narzędzia/Opcje/OpenOffice.org/Zamiana czcionek. Nalezy kliknac "zastosuj tabele zmian" i potem wpisac recznie (wazne bo prawdopodobnie nie bedzie tej nazwy na liscie!) do pola "Czcionka" Andale Sans UI i w zamien na wybrac sobie jakas ladna czcioneczke (prawie kazda jest lepsza od tego badziewia). Ja mam ustawiona Verdane. Odfajkowac zielonym przyciskiem tak zeby znalazlo sie na liscie. Przy wiekszych rozdzielczosciach dobrze jest tez ustawic sobie w menu "Widok" skale na jakas wyzsza (ja przy 1600x1200 mam 115%) wtedy czcionka bedzie sie ladniej prezentowac (milszy anty aliasing) i bedzie nieco wieksza (ale tylko w interfejsie - nie wplywa na powiekszenie czcionek np. w dokumentach tekstowych).

I to tyle na poczatek. U mnie paczka wydaje sie dzialac juz calkiem przyzwoicie a odpadaja wszystkie klopoty z polonizacja.


EDIT: changed link from /opt/openoffice-uxpl/program/soffice to /usr/bin/soffice-uxpl (was /usr/bin/soffice) This will prevent file conflicts with existing openoffice installation. Sorry, I removed my version of openoffice from extra before I installed -uxpl version and I didn't notice it.

Offline

#2 2004-10-05 14:38:33

Dreameen
Member
From: Poland
Registered: 2004-09-06
Posts: 252

Re: openoffice.org - ux.pl - optimized for Polish

This is some great news for polish users who need a decent and localized word processor. smile

I'll test the PKGBUILD right away and tell ya how it works. ATM I have a working installation of regular OO from extra and i managed to get the spellchecker up and running, but...that's all. I really need the localization of all the gui, thesaurus and stuff since i have to write some official documents in polish, so i'm really looking forward to try the version prepared by "ux.pl" guys and it's all thanks to you lanrat, good job.  smile

Offline

#3 2004-10-05 20:51:08

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: openoffice.org - ux.pl - optimized for Polish

To anyone that will have "file not found errors" during build process.
Please remove additional spaces before and after "" character at the end of sed lines (effect of copying/pasting from the forum to your editor).
Thank you for your cooperation
:-)

It should be possible to install this version of OOo together with other versions. It's installed in /opt/openoffice-uxpl and shouldn't conflict with other OOos. One thing you should do before running setup as a user if you have other OOo version installed (besides giving another name for configs dir when setup asks for it - I suggest ~/openoffice-uxpl) is to comment out existing OpenOffice.org 1.1.2 key line in ~/.sversionrc (you don't have to delete it). After running setup you can choose which OOo version should be the default (for example which writer should be run when you click on a file icon in your filemanager) just by uncommenting it's key and commenting out all other keys. You can run all versions "manually" by running for example ~/openoffice-uxpl/soffice and opening a file from it.
And don't forget to change the very ugly user interface default font to something else (instructions included in the first post).

Offline

#4 2004-10-05 20:57:48

Abaddon
Member
From: Poland
Registered: 2004-05-03
Posts: 249

Re: openoffice.org - ux.pl - optimized for Polish

I wonder why Polish people are talking in english here, I think another people aren't intrested in wink


Gnome - The weakest link!
Linux, *not* GNU/Linux!

Offline

#5 2004-10-05 21:10:19

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: openoffice.org - ux.pl - optimized for Polish

Yes. That's strange  lol

Offline

#6 2004-10-06 14:22:19

Dreameen
Member
From: Poland
Registered: 2004-09-06
Posts: 252

Re: openoffice.org - ux.pl - optimized for Polish

OT:I was simply thinking that it's the unwritten law of this forum to write in english. Besides, lanrat's post about the added spaces when copying sth from this forum can be helpful for someone encountering the same problem...plus, it's always good to practice your writing skills in other language, it may come in handy in the future smile

Now, let me kill those nasty spaces and compile OO properly. 8)

Offline

#7 2004-10-06 17:30:31

robot5x
Member
Registered: 2004-01-26
Posts: 266

Re: openoffice.org - ux.pl - optimized for Polish

Abaddon wrote:

I wonder why Polish people are talking in english here, I think another people aren't intrested in wink

dobrze - mowimy po polsku teraz, ja potrzebuje przecwiczyc bo raczej kiepski jestem.:)
Ja mam problem chyba -

[root-is in /home/robot5x]
 1# pacman -A /var/abs/local/open
office-uxpl/openoffice-uxpl-1.1.2-1.pkg.tar.gz 
loading package data... openoffice-uxpl: syntax error in description file line 6
done.
checking for file conflicts... 
error: the following file conflicts were found:
  openoffice-uxpl: /usr/bin/soffice: exists in filesystem

Myslalem ze openoffice zawsze wymaga /usr/bin/soffice, dlatego nie da sie uzywac dwuch ruznych wersji w tym samym czasie??
Moze masz jakies propozycje?
dzieki

Offline

#8 2004-10-06 17:40:01

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: openoffice.org - ux.pl - optimized for Polish

robot5x,

that response is worthy of being moved to the "other" language forum tongue


AKA uknowme

I am not your friend

Offline

#9 2004-10-06 18:19:53

robot5x
Member
Registered: 2004-01-26
Posts: 266

Re: openoffice.org - ux.pl - optimized for Polish

you're right, sorry...
It's just that I can't install this cos there's already a /usr/bin/soffice from my install from extra. Unless I'm doing something the wrong way round, I don't see how you can have two different versions at the same time. Although it seems strange that it uses /usr/bin/soffice at all, as there is the dir in /opt for setup and the executable in the dir I install it to (/home/robot5x/openoffice).

Offline

#10 2004-10-06 18:38:57

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: openoffice.org - ux.pl - optimized for Polish

i was just being silly .....

i will take a look inot the problem though  it thought that OOo was in /opt so i don't see how there could be a conflict unless OOo checks for itself anywhere on the system (though unlikely because i have two OOo on my mac)


AKA uknowme

I am not your friend

Offline

#11 2004-10-06 18:48:15

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: openoffice.org - ux.pl - optimized for Polish

well one of the ways i am sure i have two running side by side on my mac is because each version resides in its own version named directory (Openoffice.org1.x.x/ )

in OS X though you do not have to run the setup (i can't remember but i think it is just install and go ... after waiting forever for it to launch). I think I ran side by side in arch before when i was tha maintainer because i also had the root and user directories named Openoffice.org1.x.x/ .

so i am thinking you should not have issues with installing to /usr/bin/ . best email lanrat and you can trouble shoot with him and post back?


AKA uknowme

I am not your friend

Offline

#12 2004-10-06 20:19:19

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: openoffice.org - ux.pl - optimized for Polish

I fixed this file conflict problem (check first post). I'm sorry I didn't notice it before. I also explained how and why this version of openoffice can co-exist with others but now part is in Polish and part in English so let's stay with English for now :-)

Current versions of openoffice which are installed from binary packages (as uxpl and the one in extra repo - that's because newest gcc doesn't like openoffice sources for a dinner) use setup for per user installation. It simply copies user configuration files and makes some symlinks. I guess this could be changed if we were compiling sources. Or you could install the whole ooo as a user (not a network install) but I didn't check this (I doubt many people do this).

If you have already another version of ooo installed for the same user that you want to have uxpl version then this user has to choose different than suggested ~/ subdirectory name. I  suggest  using ~/openoffice-uxpl because it's easier to remember and because package from extra uses ~/openoffice as a standard.

The trouble is that first time user runs openoffice setup it creates ~/.sversionrc file with a key pointing at previous ooo subdir in ~/. So before you want to install uxpl version you have to edit this file and comment out the key line. New key is added by uxpl setup. Now you have to decide which ooo should be the default (run when you click on ooo document icon if your filemanager supports this feature) and leave only this key uncommented. If you want to open a document in nondefault version of ooo you have to run it and choose the file from file/open menu. That's what other ooo users suggest. I guess it all depends on your configs. For example in rox file manager you could define two actions for a given file type. I think "default version" is a minor problem after running setup.

/usr/bin/soffice (now /usr/bin/soffice-uxpl) is just a symlink which (I think) only function is to make soffice available in the default search path (notice that there's no profile.d script included which could extend default path). I don't know if it's the best standard or not but I just followed /var/abs/extra/office/openoffice/PKGBUILD syntax.

Official package does more things than openoffice-uxpl after installation like copying and adding some gnome/kde desktop files.
I think I can write uxpl version of such install script that will also check if another ooo version already copied these files and display a message in this case.

Other improvements I'm thinking of are geting rid of tcsh dependency and also j2sdk (or changing it to j2re).
I think install works ok without tcsh (but I still have to search for more info about this). I know that java is required for two things at least:
- during installation it registers some exotic filetypes (that's what I've learnt from the web)
- it allows to place an applet inside ooo document (if you are a masochist :-)).
I think both things are really not worth including a dependency for java at all. I'm still not sure if help system doesn't require java since there are .jar files inside. AFAIK it's possible to change java dependency during install process by changing some default variabiles in install configs.
When I get a clear answer to these questions I'll update pkgbuild (this also requires some time because ooo and java are quite big and to be sure I have to install/unsintall them a few times)

Thank you for all your responses

@robot5x (in Polish):
wszystko powinno juz grac mam nadzieje. sprawdz tez czy przy kopiowaniu nie zjadles jakiegos znaku w pkgbuildzie w linii url albo obok (moze brakuje cudzyslowu?) bo na cos takiego wskazuje "syntax error in description file line 6". dziwne. ale konfliktu juz nie powinno byc tak czy inaczej.

Offline

#13 2004-10-07 15:53:30

robot5x
Member
Registered: 2004-01-26
Posts: 266

Re: openoffice.org - ux.pl - optimized for Polish

sarah31 wrote:

i was just being silly .....

Now that was the last thing I expected! wink

I rebuild and reinstalled following lanrat's advice, and all is fine now.

I forgot to thank lanrat for making this pkgbuild available - it's really great. One thing for people to look out for - the ftp servers were busy when I first tried to compile this, so I went to the ux.pl site to grab the package. But the one from this site is named differently - it is openofficexxxx-ux-pl.tar.gz and not openofficexxxx-ux.pl.tar.gz! small difference but obviously pkgbuild don't like it.

lanrat wrote:

sprawdz tez czy przy kopiowaniu nie zjadles jakiegos znaku w pkgbuildzie w linii url albo obok (moze brakuje cudzyslowu?)

Fixed - it was just a mistake copying the pkgbuild from the forum..

lanrat wrote:

Domyslna czcionka dla menu interfejsu jest bardzo brzydka

Mine started up with a nice anti-alias font for some reason...looks good.
Thanks again.

Offline

#14 2004-10-07 17:20:43

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: openoffice.org - ux.pl - optimized for Polish

I'm glad now it works also for you and hopefully for others too :-)

Why pkgbuild didn't like your source package name?

I included alternative source urls in the comments. They also should work but I can't download and build the package from each mirror because the file is just too big :-)

Was this because you downloaded source package "manually" from the website and you didn't change url in the pkgbuild ? (I know there is a "." instead of "-" but if I comment out the existing url and uncomment one of the alternative urls in the pkgbuild then makepkg -o starts downloading and it seems everything is ok...)

Offline

#15 2004-10-07 17:43:15

Dreameen
Member
From: Poland
Registered: 2004-09-06
Posts: 252

Re: openoffice.org - ux.pl - optimized for Polish

I confirm that font looks very nice after installation, in menus too. I suppose it differs from user to user.

For me, downloading the binaries from the loacation stated in PKGBUILD wasn't a problem, maybe i just got lucky so the speed was decent throughout the download time.

Both packages, the polish one and the one from extra install to /opt directory, of course they have different names so there's no way for them to conflict with each other. After the initial installation the ./setup file has to be run for each user that wants to use OO. There are two options, either you choose workstation option(which is only about 3-4 MB), or you can choose local installation, in this case you'll need about ~220Mb in the directory you wish to install OO to. I've tried installing OO localy to my /home/dreameen/utils/OO directory and then removing the main install dir from /opt and it worked fine as well. The only thing to keep in mind is to keep an eye on the .sversionrc file in your home directory, but i think everything was said about this.

Why would you need two versions of OO anyway, just stick with the one you prefer.

Offline

#16 2004-10-07 18:03:43

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: openoffice.org - ux.pl - optimized for Polish

I think this may depend on the fonts that you already have installed.
My ooo tried to use standard andale font and this font didn't have any good alias. Anyway, if someone has fonts problems in ooo check official ooo faq here http://www.openoffice.org/FAQs/fontguide.html (for ugly UI font check the answer on the bottom of this page).

Offline

#17 2004-11-09 02:15:22

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: openoffice.org - ux.pl - optimized for Polish

Update to 1.1.3

Ooo 1.1.3 ux.pl is out. I'm not updating previous posts because I want to leave them for comparisions and as backup.

All previous posts are still valid and you might want to read them if you didn't do it already.

new pkgbuild (small changes)

pkgname=openoffice-uxpl
pkgver=1.1.3
_uxver=1.1.3-1
pkgrel=1
pkgdesc="Alternative Polish version of OpenOffice.org prepared and improved by ux.pl"
url="http://www.ux.pl"
depends=('x-server' 'pam' 'libart-lgpl')
makedepends=('j2re' 'zip' 'unzip' ) #'tcsh'
provides=('openoffice-base')
source=(http://213.227.72.1/~tom/OOo-${_uxver}-linux-ux-pl.tgz)
# Alternative source urls
# source=(ftp://nest.ux.com.pl/pub/OOo-${_uxver}-linux-ux.pl.tgz)
# source=(ftp://sunsite.icm.edu.pl/packages/OpenOffice/ux/OOo-${_uxver}-linux-ux.pl.tgz)
md5sums=('cf8841757ddef5134a9727e9a01feec9')
# Changelog is available at
# http://www.ux.pl/openoffice/chlog.txt

build() {

    install -d -m755 $startdir/pkg/opt
    install -d -m755 $startdir/pkg/usr/bin

    # Installing from a precompiled binary package

    cd $startdir/src/normal

    # Changing the default installation directory
    sed -i "s/^oo_home=.*$/oo_home=${pkgname}/g" $startdir/src/normal/install

    # Fix that prevents symlinking to /usr/bin/soffice during build time
    sed -i "s/shell.*ln.*sofficeFile.*linkName.*//" $startdir/src/normal/setup.ins

    # Running original installation script
    ./install --prefix=$startdir/pkg/opt

    # Creating link that does not conflict with other ooo versions
    cd $startdir/pkg/usr/bin
    ln -s ../../opt/${pkgname}/program/soffice soffice-uxpl

    # Fixing library symlinks
    cd $startdir/pkg/opt/${pkgname}/program
    mv libgcc_s.so.1 libgcc_s.so.1.old
    ln -s /usr/lib/libgcc_s.so.1 libgcc_s.so.1

    # Fix that allows starting oo-uxpl with soffice-uxpl
    sed -i "s/(exec.*)$sd_binary(.*)/1soffice.bin2/" ./soffice

    # Fixing kde related paths
    cd $startdir/pkg/opt/${pkgname}/share/kde/net
    sed -i 's/^Exec=.*/program/(.*)$/Exec="/opt/TEMPORARYNAME/program/1/g' *.desktop
    sed -i "s/TEMPORARYNAME/${pkgname}/g" *.desktop

    # Fixing gnome related paths
    cd $startdir/pkg/opt/${pkgname}/share/gnome/net
    sed -i 's/^Exec=.*/program/(.*)$/Exec=/opt/TEMPORARYNAME/program/1/g' *.desktop
    sed -i 's/^Icon=.*/share/icons/(.*)$/Icon=/opt/TEMPORARYNAME/share/icons/1/g' *.desktop
    sed -i 's/^Icon=.*/share/icons/(.*)$/Icon=/opt/TEMPORARYNAME/share/icons/1/g' .directory
    sed -i "s/TEMPORARYNAME/${pkgname}/g" *.desktop
    sed -i "s/TEMPORARYNAME/${pkgname}/g" .directory

}

1. No install file
Unlike openoffice-base from extra this version doesn't have an install file. It's only function now is to display a postinstall message (see 2).
You can still make user install with /opt/openoffice-uxpl/setup and run openoffice with soffice-uxpl (it's installed in /usr/bin).

2. No automatic gnome/kde integration
I didn't want to make it because I don't use kde/gnome and I didn't want it to produce conflicts with other versions of ooo. If you want to do this follow /var/abs/extra/office/openoffice-base/PKGBUILD and/or this gentoo ebuild http://www.gentoo-portage.com/ebuild?e= … 1.3.ebuild
Filepaths are already changed so you only have to copy some files.
If you know a better method or you want to share some more details please post them below.
AFAIK running /opt/openoffice-uxpl/setup already copies kde files to ~/.kde so it should work without touching anything.

3. Upgrading user settings
According to docs 1.1.3 should automatically recognize and update previous installation of user settings (in user's home dir) if you leave ~/.sversionrc. Unfortunatelly (of course) it doesn't work for me :-) Setup complains about different language of previous installation (which is not true) and refuses to upgrade files. It offers only installation in a new directory. It looks like upgrade function is broken.
As a workaround you can save at least your user settings if you want to. First move ~/.sversionrc and ~/your_ooo_user_subdirectory to some backup directory. Run /opt/openoffice-uxpl/setup and follow instructions (you may leave the form with personal details unfiled). After setup finishes delete all subdirectories in ~/.your_ooo_user_subdirectory/user except basic. Now copy in their place all ~/.your_ooo_user_subdirectory/user subdirectories (again except basic) from your backup.
When you start soffice-uxpl it should remember your settings (no guarantee all is saved but all basic settings should be ok - don't delete your backup just in case...).
The above is based on the following threads:
http://www.oooforum.org/forum/viewtopic.php?t=13040
http://www.oooforum.org/forum/viewtopic … rade+linux
http://www.oooforum.org/forum/viewtopic … rade+linux
If you know a better method please post it here.

That's all for today :-)

EDIT: 11-11-2004
Thanks to Dreameen I've discovered a small bug and fixed it. (I also added some comments).

Ooo-uxpl should be now properly started using soffice-uxpl in /usr/bin. It's a symlink to /opt/openoffice-uxpl/program/soffice.

The problem is that this script uses bash parameter $0 (name of the file that called bash - in this case soffice-uxpl) to construct full pathname to soffice binary file. This should be /opt/openoffice-uxpl/program/soffice.bin but it tries to run soffice-uxpl.bin which of course doesn't work.
There are two workarounds. One is to modify a little soffice script (which I did in the above pkgbuild). Second workaround is to symlink soffice.bin to soffice-uxpl.bin.
I also discovered that oo-uxpl setup program always adds a symlink from soffice in your build dir (in my case /var/abs/local/...) to /usr/bin/soffice during build time. This is hardcoded in the setup.ins file.
All is now fixed and should work properly.

EDIT: 2004-12-23 "base" should be "basic" above. fixed.

Offline

#18 2004-12-22 23:19:02

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: openoffice.org - ux.pl - optimized for Polish

New version is out 1.1.4

New pkgbuild with very minor changes:

pkgname=openoffice-uxpl
pkgver=1.1.4
_uxver=1.1.4-1
pkgrel=1
pkgdesc="Alternative Polish version of OpenOffice.org prepared and improved by ux.pl"
url="http://www.ux.pl"
depends=('x-server' 'libart-lgpl' 'j2re')
makedepends=('zip' 'unzip' )
provides=('openoffice-base')
source=(ftp://sunsite.icm.edu.pl/packages/OpenOffice/ux/OOo-${_uxver}-linux-ux.pl.tgz)
md5sums=('e965a1b30f2c6ce19995843479dc39f0')
# Alternative source urls
# source=(http://www.uxsystems.internetdsl.pl/OOo-1.1.4-1-linux-ux.pl.tgz)
# source=(ftp://nest.ux.com.pl/pub/OOo-${_uxver}-linux-ux.pl.tgz)
# Changelog is available at
# http://www.ux.pl/openoffice/chlog.txt

build() {
    
    install -d -m755 $startdir/pkg/opt
    install -d -m755 $startdir/pkg/usr/bin

    # Installing from a precompiled binary package
    cd $startdir/src/normal

    # Changing the default installation directory
    sed -i "s/^oo_home=.*$/oo_home=${pkgname}/g" $startdir/src/normal/install

    # Fix that prevents symlinking to /usr/bin/soffice during build time
    sed -i "s/shell.*ln.*sofficeFile.*linkName.*//" $startdir/src/normal/setup.ins

    # Running original installation script
    ./install --prefix=$startdir/pkg/opt

    # Creating link that does not conflict with other ooo versions
    cd $startdir/pkg/usr/bin
    ln -s ../../opt/${pkgname}/program/soffice soffice-uxpl

    # Fixing library symlinks
    cd $startdir/pkg/opt/${pkgname}/program
    mv libgcc_s.so.1 libgcc_s.so.1.old
    ln -s /usr/lib/libgcc_s.so.1 libgcc_s.so.1

    # Fix that allows starting oo-uxpl with soffice-uxpl
    sed -i "s/(exec.*)$sd_binary(.*)/1soffice.bin2/" ./soffice

    # Fixing kde related paths
    cd $startdir/pkg/opt/${pkgname}/share/kde/net
    sed -i 's/^Exec=.*/program/(.*)$/Exec="/opt/TEMPORARYNAME/program/1/g' *.desktop
    sed -i "s/TEMPORARYNAME/${pkgname}/g" *.desktop

    # Fixing gnome related paths
    cd $startdir/pkg/opt/${pkgname}/share/gnome/net
    sed -i 's/^Exec=.*/program/(.*)$/Exec=/opt/TEMPORARYNAME/program/1/g' *.desktop
    sed -i 's/^Icon=.*/share/icons/(.*)$/Icon=/opt/TEMPORARYNAME/share/icons/1/g' *.desktop
    sed -i 's/^Icon=.*/share/icons/(.*)$/Icon=/opt/TEMPORARYNAME/share/icons/1/g' .directory
    sed -i "s/TEMPORARYNAME/${pkgname}/g" *.desktop
    sed -i "s/TEMPORARYNAME/${pkgname}/g" .directory

}

I used the procedure described in my previous post to upgrade user files and settings and so far it works fine. Have fun :-)

Offline

#19 2004-12-25 22:49:59

bartekplus
Member
Registered: 2004-12-25
Posts: 4

Re: openoffice.org - ux.pl - optimized for Polish

lanrat thx i have looked for that for long time smile

Offline

Board footer

Powered by FluxBB