You are not logged in.
Pages: 1
An open source clone of the Microprose game "Transport Tycoon Deluxe".
Before you run OpenTTD you need some files from the WINDOWS version of TTD. You should have a link winttd pointing to an installed TTD in the build directory or read the manual and copy the necessary files yourself.
PKGBUILD:
#
# Contributor: Viktor Peters <lordmythos7@gmx.net>
# 
pkgname=openttd
pkgver=0.3.4
pkgrel=3
pkgdesc="OpenTTD is a clone of Transport Tycoon Deluxe"
url="http://www.openttd.com/"
license="GPL-2"
depends=('sdl' 'libpng' 'zlib' 'timidity++')
source=(http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 
        openttd.desktop)
md5sums=('14a4761593ac31418454c9cc1fe8a8bb' '8d63d0fe19b1db6783fabbb8d5ae0ac9')
build() {
  cd $startdir/src/$pkgname-$pkgver
  echo $PWD
  make MANUAL_CONFIG=1 UNIX=1 WITH_SDL=1 WITH_NETWORK=1 USE_HOMEDIR=1 
       PERSONAL_DIR=.openttd GAME_DATA_DIR=/usr/share/openttd/ 
       WITH_PNG=1 WITH_ZLIB=1 || return 1
  install -d -m755 $startdir/pkg/usr/bin
  install -d -m755 $startdir/pkg/usr/share/pixmaps
  install -d -m755 $startdir/pkg/usr/share/applications
  install -d -m755 $startdir/pkg/usr/share/openttd/data
  install -d -m755 $startdir/pkg/usr/share/openttd/lang
  install -d -m755 $startdir/pkg/usr/share/openttd/docs
  install -m755 openttd $startdir/pkg/usr/bin
  for f in data/*; do
    install -m644 $f $startdir/pkg/usr/share/openttd/data
  done
  for f in lang/*; do
    install -m644 $f $startdir/pkg/usr/share/openttd/lang
  done
  for f in readme.txt changelog.txt docs/Manual.txt docs/console.txt; do
    install -m644 $f $startdir/pkg/usr/share/openttd/docs
  done
  install -m644 media/icon128.png $startdir/pkg/usr/share/pixmaps/openttd.png
  install -m644 $startdir/src/openttd.desktop $startdir/pkg/usr/share/applications
  if [ -r $startdir/winttd ]; then
    for f in sample.cat trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf; do
      install -m644 $startdir/winttd/$f $startdir/pkg/usr/share/openttd/data
    done
    if [ -r $startdir/winttd/gm ]; then
      install -d -m755 $startdir/pkg/usr/share/openttd/gm
      for f in $startdir/winttd/gm/*; do
        install -m644 $f $startdir/pkg/usr/share/openttd/gm
      done
    fi
  fi
}openttd.desktop:
[Desktop Entry]
Encoding=UTF-8
Name=OpenTTD
Comment=An open source clone of "Transport Tycoon Deluxe"
Exec=openttd
Icon=openttd.png
Terminal=false
Type=Application
Categories=Application;Game;Simulation;Offline
Pages: 1