Hello,

I think that e-mail will be...hudge.

I tried to make a FB for Quake IV, an Id Software game. But, I have got a problem. The problem concerns language. This FB is just for english, french, italien and spanish languages whereas we can install, by the installer, the german languages (which concerns the german, the polish,...) But... it is a question of choice. If we install the latin languages, we can't install the german languages because they use different binary files and different executables. So, can I make another FB of Quake IV just for german languages ? If yes, I don't think that the README.Frugalware will be complete because on my Quake IV CD, I have just the latin languages files :-/

Ah, and, I noticed that the x86 and x86_64 are the same for that game :-(

To finish, I hope this FB is... good and, I don't disturb you for the flood which I make with my FB reviews :-)

gholafox


# Compiling Time: 0.05 SBU
# Maintainer: none
# Contributor: jedifox <[EMAIL PROTECTED]>
 
pkgname=quake4
pkgver=1.4.2
pkgrel=1
pkgdesc="You must stop the Stroggs in their own planet Stroggos"
url="http://www.idsoftware.com/";
depends=('sdl')
groups=('games-extra')
archs=('i686' 'x86_64')
up2date="$pkgver"
options=('nobuild')
source=(http://quake.fr/fichier/stuff/quake4/patchs/$pkgname-linux-$pkgver.x86.run
 $pkgname.png README.Frugalware)
sha1sums=('870bbda920b846c51904b22c40ce15aac8c9183b' \
          '547ab483313d30671788660504b0f615c5084b74' \
          '0c13957abe4bd531e61f56fc0b3d04b7675dfc7c')
_F_desktop_name="Quake IV"
_F_desktop_icon="$pkgname.png"
_F_desktop_categories="Game;ActionGame"
build()
{
        #prepare sources & directories:
        mkdir quake4
        Fmkdir usr/share/games/quake4
        Fmkdir usr/bin

        #extract .run file
        chmod +x $pkgname-linux-$pkgver.x86.run
        ./$pkgname-linux-$pkgver.x86.run --tar xf -C quake4 || Fdie

        #copy files into install directory
        Fcp quake4/Docs usr/share/games/quake4
        Fcp quake4/pb usr/share/games/quake4
        Fcp quake4/q4base usr/share/games/quake4
        Fcp quake4/q4mp usr/share/games/quake4
        Ffile quake4/us/q4base/* usr/share/games/quake4/q4base
        Ffile quake4/sdl.patch.1.2.10 usr/share/games/quake4

        # install executables & libraries (for x86_64 and x86, is the same 
because the x86_64 executable directory is a link to the x86 executable 
directory):
        Finstall 755 quake4/bin/Linux/x86/{q4ded.x86,quake4.x86,quake4smp.x86} 
usr/share/games/quake4
        # Ffile quake4/bin/Linux/x86/libSDL-1.2.id.so.0 usr/share/games/quake4
        Fln usr/lib/libstdc++.so.6 /usr/share/games/quake4
        Fln usr/lib/libgcc_s.so.1 /usr/share/games/quake4
        Fln usr/lib/libSDL-1.2.so.0 /usr/share/games/quake4

        # install docs
        Fdoc 
quake4/{README,README-1.3.htm,README_builtin_downloads.txt,README_Q4TV_broadcasting.txt,License.txt,CHANGES_14.txt}

        #punkbuster:
        Fdirschown usr/share/games/quake4/pb root root

        #desktop entry:
        Fwrapper "cd /usr/share/games/quake4 && ./quake4.x86" quake4
        Ficon $pkgname.png
        Fdesktop2
}

<<inline: quake4.png>>

To be able to play to Quake IV, first,
you have to buy the game CD or DVD.
Then, you must, copy and paste, from the $media/Setup/Data/q4base directory
to /usr/share/games/quake4/q4base, the following files:

-"pk001.pk4" until "pk012.pk4"

And
if you are English:
-zpak_english.pk4

if you are French:
-zpak_french.pk4

if you are Italian:
-zpak_italian.pk4

if you are Spanish:
-zpak_spanish.pk4

Then, you can remove the .pk4 files which are not
for your language. 

To finish, to translate the game, you must create a autoexec.cfg
file in the /home/LOGIN/.quake4/q4base directory and add this line:
seta sys_lang "$language"

where $language is YOUR language. For example, english, spanish, french...

Have fun :-)
==> WARNING: fblint says some needed variables are missing or incomplete.
    Abort the build unless you know what you are doing.
==> Entering fakeroot environment
==> WARNING: fblint says some needed variables are missing or incomplete.
    Abort the build unless you know what you are doing.
==> Making package: quake4 1.4.2-1 (Tue Jul 22 19:14:58 CEST 2008)
==> Checking Runtime Dependencies...

==> Missing Dependencies:
==> 
requires: sdl 
==> 
==> Installing missing dependencies...
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded: 
ignored.
resolving dependencies... done.
looking for inter-conflicts... done.

Targets: sdl-1.2.13-1

Total Package Size:   0.6 MB

Total Uncompressed Package Size:   1.8 MB

:: Retrieving packages from frugalware-current...
gethostbyname: Success
[19:14:59] warning: cannot connect to ftp7.frugalware.org

checking package integrity... done.
checking for file conflicts... done.
installing sdl... done.

==> Checking Buildtime Dependencies...
==> Checking for newer version...
   Passed
==> Estimated build time: 1 minute 4 seconds 
==> Retrieving Sources...
   -> Using local copy of quake4-linux-1.4.2.x86.run
   -> Found quake4.png in build dir
   -> Found README.Frugalware in build dir
==> Validating source files with SHA1sums
    quake4-linux-1.4.2.x86.run ... Passed
    quake4.png ... Passed
    README.Frugalware ... Passed
==> Extracting Sources...
==> Starting build()...
==> Creating directory: usr/share/games/quake4
==> Creating directory: usr/bin
==> Copying file(s): quake4/Docs
==> Copying file(s): quake4/pb
==> Copying file(s): quake4/q4base
==> Copying file(s): quake4/p
==> Installing file(s): /var/tmp/fst/src/quake4/us/q4base/pak015.pk4
==> Installing file(s): /var/tmp/fst/src/quake4/us/q4base/pak017.pk4
==> Installing file(s): /var/tmp/fst/src/quake4/us/q4base/pak020.pk4
==> Installing file(s): /var/tmp/fst/src/quake4/us/q4base/pak022.pk4
==> Installing file(s): /var/tmp/fst/src/quake4/sdl.patch.1.2.10
==> Installing file(s): /var/tmp/fst/src/quake4/bin/Linux/x86/q4ded.x86
==> Installing file(s): /var/tmp/fst/src/quake4/bin/Linux/x86/quake4.x86
==> Installing file(s): /var/tmp/fst/src/quake4/bin/Linux/x86/quake4smp.x86
==> Creating symlink(s): usr/lib/libstdc++.so.6
==> Creating symlink(s): usr/lib/libgcc_s.so.1
==> Creating symlink(s): usr/lib/libSDL-1.2.so.0
==> Creating directory: /usr/share/doc/quake4-1.4.2
==> Installing file(s): /var/tmp/fst/src/quake4/README
==> Installing file(s): /var/tmp/fst/src/quake4/README-1.3.htm
==> Installing file(s): /var/tmp/fst/src/quake4/README_builtin_downloads.txt
==> Installing file(s): /var/tmp/fst/src/quake4/README_Q4TV_broadcasting.txt
==> Installing file(s): /var/tmp/fst/src/quake4/License.txt
==> Installing file(s): /var/tmp/fst/src/quake4/CHANGES_14.txt
==> Changing the owner of directories inside: usr/share/games/quake4/pb
==> Creating a wrapper: /usr/bin/quake4
==> Creating directory: /usr/share/pixmaps
==> Installing file(s): /var/tmp/fst/src/quake4.png
==> Creating directory: /usr/share/applications
==> Installing desktop file: quake4.desktop
==> Elapsed Time: 0.05 SBU
==> Removing unwanted files...
==> Preparing package documentation...
==> Compressing info and manual pages...
==> Checking symbolic links...
   -> Maybe broken link /usr/share/games/quake4/libstdc++.so.6 in pkg quake4 
found.
   -> Maybe broken link /usr/share/games/quake4/libgcc_s.so.1 in pkg quake4 
found.
   -> Maybe broken link /usr/share/games/quake4/libSDL-1.2.so.0 in pkg quake4 
found.
==> Stripping debugging symbols from libraries from quake4...
==> Stripping symbols from binaries from quake4...
==> Generating files for quake4:
   -> .PKGINFO file... 
   -> .FILELIST file... 
   -> Compressing quake4-1.4.2-1-i686.fpm 
==> Finished making: quake4  (Tue Jul 22 19:17:22 CEST 2008)
_______________________________________________
Frugalware-devel mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-devel

Reply via email to