--- bve-route-cross-city-south-1.31.03.orig/debian/control +++ bve-route-cross-city-south-1.31.03/debian/control @@ -0,0 +1,34 @@ +Source: bve-route-cross-city-south +Section: games +Priority: optional +Maintainer: Paul Sladen +Build-Depends: debhelper (>= 5) +Build-Depends-Indep: vorbis-tools +Standards-Version: 3.8.0 +Vcs-Browser: http://github.com/sladen/bve-route-cross-city-south/tree/debian +Vcs-Git: http://github.com/sladen/bve-route-cross-city-south.git +Homepage: http://www.railsimroutes.co.uk/x-city_south/ + +Package: bve-route-cross-city-south +Architecture: all +Provides: bve-route +Suggests: bve-train-br-class-323 +Recommends: bve-engine +Description: Birmingham Cross-City South (for OpenBVE rail simulator) + Very accurate train simulator route stretching from Redditch to + Birmingham New Street station in the United Kingdom. The line is + electrified, starting off single-track in the countryside before + reaching the inner metropolitan area. 15 miles / 25 km. + . + The route contains multiple timetables and varied activities for + different seasons and times of day... including blanket snow! + . + A suitable train is the British Rail Class 323 EMU. The route stops + at the purple-coloured Bournville station next Cadbury's chocolate + factory. + . + This version of the Birmingham Cross-City South route has been + specially prepared for inclusion with openBVE, and is released into + the public domain. + . + http://www.railsimroutes.co.uk/x-city_south/ --- bve-route-cross-city-south-1.31.03.orig/debian/known-issues.txt +++ bve-route-cross-city-south-1.31.03/debian/known-issues.txt @@ -0,0 +1,14 @@ +Unfixed: + +1. Missing track panel just before reaching Bournville in summer+dry +routes; it is the junction point blades. + +2. Birmingham city centre backgrounds were removed for this PD +release, so the whole route looks like it's in the countryside. + +3. To correctly stop at the signal on the main line, you need to stop +about 150 metres in advance, but just before the signal. + +4. The Timetable refer to 'F3/F4' to hide/show, but these are different +(and configurable) keys in OpenBVE. + --- bve-route-cross-city-south-1.31.03.orig/debian/changelog +++ bve-route-cross-city-south-1.31.03/debian/changelog @@ -0,0 +1,18 @@ +bve-route-cross-city-south (1.31.03-0ubuntu1) jaunty; urgency=low + + * This package can be modularised to produce multiple binary + packages once the extent of overlap with other trains/route data + is understood. + * Initial release (LP: #331188) (LP: #356615) + * Replace spaces in filenames with underscores + * Set the suggested train to 'BR_Class_323' to match with where + 'bve-train-br-class-323' installs to. + * Request lzma compression from dh_builddeb + * Symlink duplicate models/textures together + * Add a known-issues.txt file and add to docs. + * Recode the huge .wav audio files to .ogg to save 90% size. + * Rename source-package-name to match binary-package-name + * Include pseudo 'watch' file + + -- Paul Sladen Mon, 6 Apr 2009 22:59:27 +0000 + --- bve-route-cross-city-south-1.31.03.orig/debian/bve-route-cross-city-south.docs +++ bve-route-cross-city-south-1.31.03/debian/bve-route-cross-city-south.docs @@ -0,0 +1,3 @@ +debian/known-issues.txt +Railway/Route/birmingham-cross-city-south-1.31.03.pd/Readme.txt +Railway/Route/birmingham-cross-city-south-1.31.03.pd/Version.txt --- bve-route-cross-city-south-1.31.03.orig/debian/rules +++ bve-route-cross-city-south-1.31.03/debian/rules @@ -0,0 +1,90 @@ +#!/usr/bin/make -f +export DH_VERBOSE=1 + +TARGET = $(CURDIR)/debian/bve-route-cross-city-south +DOCTARGET = $(TARGET)/usr/share/doc/bve-route-cross-city-south + +# Standarised location +BVETARGET = $(TARGET)/usr/share/games/bve + +# Components +MODELDIR = Railway/Object/Bham_X-City_South +SOUNDDIR = Railway/Sound/Bham_X-City_Sounds +ROUTEDIR = Railway/Route/birmingham-cross-city-south-1.31.03.pd + +# This on is renamed to something Nicer +ROUTETARGET = $(BVETARGET)/Railway/Route/Birmingham_Cross-City_South +SOUNDTARGET = $(BVETARGET)/$(SOUNDDIR) + +# Script to symlink based on md5sum +SYMLINK_DUPS = $(CURDIR)/debian/symlink-duplicates.sh + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + rm -rf $(TARGET) + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Hardlink the textures/models during building (for speed) since we don't modify them + for component in $(MODELDIR) $(SOUNDDIR) ; do \ + cp -al $(CURDIR)/$$component/* $(BVETARGET)/$$component/ ; \ + done + + # Change the Route name to something closer to the previous tarball + # A Copy is done, so that we can do an in-place 'sed' aftewards + cp -a $(CURDIR)/$(ROUTEDIR)/* $(ROUTETARGET)/ + + # Fix up the suggested Nice_Name of the recommended train to what rename it to elsewhere + find $(ROUTETARGET) -name \*.csv -print0 | xargs -0 sed -i -e 's/\.Folder bve-train-br-class-323-unrefurb/.Folder BR_Class_323/' + + # There are duplicates of the documentation, delete these as + # .docs already installed a complete pair. + find $(BVETARGET) -name \*.txt -print0 | xargs -0 rm + + # Replaces spaces and parentheses with '_' underscores + # (nb. sed doesn't have a -0 line separator) + find $(ROUTETARGET) -name '*[ )(]*' -print | sed -nre 'p;s/[)( ]+/_/g;s/_\././g;p' | xargs -d'\n' -n2 mv + + # Symlink duplicate files + /bin/sh $(SYMLINK_DUPS) $(BVETARGET)/$(MODELDIR) $(SOUNDTARGET) + + # Recode big .wavs to Ogg Vorbis; SDL_LoadWAV loads them happily + # The impulse_noisetune is to keep the pitta-patta of the raindrops in Thunder*.wav + find $(SOUNDTARGET) -type f -iname \*wav -exec oggenc --advanced-encode-option impulse_noisetune=-5 -6 -o {}.ogg {} \; -exec mv {}.ogg {} \; + +binary-arch: + # Do nothing + +binary-indep: build install + dh_testdir + dh_testroot + dh_install + dh_installchangelogs + dh_installdocs + dh_compress + dh_fixperms + dh_link + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb -- -Z lzma + +binary: binary-indep +.PHONY: build clean binary-indep binary install configure --- bve-route-cross-city-south-1.31.03.orig/debian/symlink-duplicates.sh +++ bve-route-cross-city-south-1.31.03/debian/symlink-duplicates.sh @@ -0,0 +1,21 @@ +#!/bin/sh +#Paul Sladen, 2009-02-20 + +for dir in "$@" ; do + test -d "$dir" || continue + (cd "$dir" + find . -type f -print0 | xargs -0 md5sum | sort \ + | while read -r new_checksum new_filename ; do + if [ "$new_checksum" = "$checksum" -a -f "$new_filename" -a -f "$filename" ] ; then + # This takes full/path/names/to/file.foo and replaces each all of the levels + # with '..' (so './../../../../'). Then appends destination $file name. + symlink_path="`dirname \"$new_filename\" | sed -e 'sX/[^\./][^/]*X/..Xg'`/`echo \"$filename\"|cut -c3-`" + rm "$new_filename" && ln -s "$symlink_path" "$new_filename" + else + checksum="$new_checksum" + filename="$new_filename" + fi + done + ) +done + --- bve-route-cross-city-south-1.31.03.orig/debian/compat +++ bve-route-cross-city-south-1.31.03/debian/compat @@ -0,0 +1 @@ +5 --- bve-route-cross-city-south-1.31.03.orig/debian/watch +++ bve-route-cross-city-south-1.31.03/debian/watch @@ -0,0 +1,4 @@ +# http://www.railsimroutes.co.uk/x-city_south/downloads.html +# The 1.31.03 was an extra release prepared by the authors that +# removed the non-free materials. Currently only 1.31.02 is +# distributed via the website. --- bve-route-cross-city-south-1.31.03.orig/debian/bve-route-cross-city-south.dirs +++ bve-route-cross-city-south-1.31.03/debian/bve-route-cross-city-south.dirs @@ -0,0 +1,9 @@ +usr/share/games/bve/Railway/Object/Bham_X-City_South +usr/share/games/bve/Railway/Route/Birmingham_Cross-City_South +usr/share/games/bve/Railway/Sound/Bham_X-City_Sounds +usr/share/doc/bve-route-cross-city-south + +# Hack to allow you to run packaged route with Train from somewhere else (eg. ~/) +# The currently package 'OpenBVE' patches out the check, so this workaround +# is disabled for the moment +#usr/share/games/bve/Train --- bve-route-cross-city-south-1.31.03.orig/debian/copyright +++ bve-route-cross-city-south-1.31.03/debian/copyright @@ -0,0 +1,17 @@ +This package was Debianised by Paul Sladen +on 2009-02-18 23:33 +0000 + +It was downloaded from: + http://www.railsimroutes.co.uk/x-city_south/downloads.html + +Upstream authors: + Anthony Bowden + Steve Green + +Public domain: + + ----------- + -=Licence=- + ----------- + + This route has been released into the Public Domain, and you are free to do anything you like with the files. :)