summaryrefslogtreecommitdiff
path: root/libre/stuntrally-data-libre
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-18 01:56:34 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-18 01:56:34 +0000
commit8185891e28635bdb83fdf4ba4391030912dae596 (patch)
tree66a946535bdd228514750233b2cc99dd1866ff64 /libre/stuntrally-data-libre
parent60a11f87366fdfbd114cdc91ff813518858e5f8d (diff)
Tue Feb 18 01:56:27 UTC 2014
Diffstat (limited to 'libre/stuntrally-data-libre')
-rw-r--r--libre/stuntrally-data-libre/PKGBUILD74
-rw-r--r--libre/stuntrally-data-libre/libre.patch72
2 files changed, 146 insertions, 0 deletions
diff --git a/libre/stuntrally-data-libre/PKGBUILD b/libre/stuntrally-data-libre/PKGBUILD
new file mode 100644
index 000000000..80bd44b01
--- /dev/null
+++ b/libre/stuntrally-data-libre/PKGBUILD
@@ -0,0 +1,74 @@
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Maintainer (Parabola): André Silva <emulatorman@parabola.nu>
+
+pkgname=stuntrally-data-libre
+_pkgname=stuntrally-data
+pkgver=2.2.1
+pkgrel=1
+pkgdesc="Stunt Rally game with track editor, based on VDrift (data files), without nonfree data files"
+arch=('any')
+license=('GPL3' 'custom')
+url="http://code.google.com/p/vdrift-ogre"
+makedepends=('cmake' 'boost' 'libvorbis' 'mygui' 'sdl2' 'enet' 'hicolor-icon-theme' 'libxcursor')
+mksource=("$_pkgname-$pkgver.tar.gz::https://github.com/stuntrally/stuntrally/archive/${pkgver}.tar.gz"
+ "$_pkgname-tracks-$pkgver.tar.gz::https://github.com/stuntrally/tracks/archive/${pkgver}.tar.gz"
+ libre.patch )
+source=("https://repo.parabolagnulinux.org/other/$pkgname/$pkgname-$pkgver.tar.gz")
+replaces=$_pkgname
+conflicts=$_pkgname
+provides=$_pkgname=$pkgver
+mksha256sums=('305b5f498ab150e4cf1fd1d47410ea04ad3cf439b60278ea2b73a01278d9ca51'
+ '45e9c976964e22348530a99a99c0dac30bc766d2f9edbe1a83a7b6791850d565'
+ '89eed28f625758a22460f2cea67547d2ea6cffa2bef8133083077b1753cf2b64')
+sha256sums=('3159f8e2b33d5685fb3e7320ab8ce4a60a35830a4dac7b9c3c8aeebf9a38f8d5')
+mksource() {
+ # patch some data files and remove nonfree data files
+ cd "${srcdir}/stuntrally-${pkgver}/"
+
+ patch -Np1 -i "${srcdir}/libre.patch"
+
+ rm -rv "data/"{grass/grassJungle.png,sounds/{0{1,2,3,4,5,6,7,8,9},1{0,1,2},boost,dirt{1,2},mud{1,_cont},scrap,screech,terrain{1,2,3,4,5},water{1,2,3,_cont}}.wav,terrain,trees2,cars/{3S,CT,M3,NS,TC6,XM}}
+
+ cd "${srcdir}/tracks-${pkgver}/"
+
+ rm -rv {detroit,ruudskogen,virginia,weekend}
+}
+
+build() {
+ # build the sources
+ cd "${srcdir}/stuntrally-${pkgver}/"
+
+ rm -rf build
+ mkdir build && cd build
+
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DSHARE_INSTALL="share/stuntrally"
+ make
+
+ # build the tracks
+ cd "${srcdir}/tracks-${pkgver}/"
+
+ rm -rf build
+ mkdir build && cd build
+
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX="/usr"
+ make
+}
+
+package() {
+ # install the sources
+ cd "${srcdir}/stuntrally-${pkgver}/build/"
+ make DESTDIR="${pkgdir}" install
+
+ # install the tracks
+ cd "${srcdir}/tracks-${pkgver}/build"
+ make DESTDIR="${pkgdir}/usr/share/stuntrally/" install
+
+ # clean up
+ rm -rf "${pkgdir}/usr/share/stuntrally/tracks/build"
+ rm -rf "${pkgdir}/usr/share/icons"
+ rm -rf "${pkgdir}/usr/share/applications"
+ rm -rf "${pkgdir}/usr/bin"
+}
diff --git a/libre/stuntrally-data-libre/libre.patch b/libre/stuntrally-data-libre/libre.patch
new file mode 100644
index 000000000..d55a4e54a
--- /dev/null
+++ b/libre/stuntrally-data-libre/libre.patch
@@ -0,0 +1,72 @@
+diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
+index c43ef18..aa6373e 100644
+--- a/data/CMakeLists.txt
++++ b/data/CMakeLists.txt
+@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8)
+
+ # Install data files
+ # TODO: make this use all data/* subdirs without tracks, not entered by hand ..
+-foreach(datadir cars carsim compositor editor fonts ghosts grass gui hud loading materials materials2 objects particles road road_s skies skies_s sounds terrain terrain2 trees-old trees trees2)
++foreach(datadir cars carsim compositor editor fonts ghosts grass gui hud loading materials materials2 objects particles road road_s skies skies_s sounds terrain2 trees-old trees)
+ install(DIRECTORY ${datadir} DESTINATION ${SHARE_INSTALL})
+ endforeach()
+
+diff --git a/data/grass/_grass.txt b/data/grass/_grass.txt
+index 787737e..84197af 100644
+--- a/data/grass/_grass.txt
++++ b/data/grass/_grass.txt
+@@ -10,10 +10,3 @@ http://opengameart.org/content/plants-textures-pack-03
+ http://opengameart.org/content/plants-textures-pack-04
+
+ many colored by CryHam for SR
+-
+----- Old
+-grassJungle.png rest is colored
+-
+-This grass texture included with PagedGeometry was kindly provided by
+-Agnisola Philippe (http://www.blitz3dfr.com/portal_joomla/) for
+-commercial or non-commercial use.
+diff --git a/data/sounds/_sounds_info.txt b/data/sounds/_sounds_info.txt
+index 2cab386..eb4e086 100644
+--- a/data/sounds/_sounds_info.txt
++++ b/data/sounds/_sounds_info.txt
+@@ -7,39 +7,3 @@ grass
+ gravel
+ tire_squeal
+ wind
+-
+--- new sounds from
+-http://www.freesound.org/
+-
+-various smaller cuts, from:
+-[author soundname]
+-
+- metal hits 01..12:
+-halleck metal-medium-hit
+-halleck metal-hits-medium-1
+-halleck metal-hits-light-1
+-halleck metal-thump
+-sagetyrtle crash-1
+-sagetyrtle crash-2
+-halleck big-metal-side-impact-1
+-halleck big-metal-side-impact-2
+-halleck metal-crash-1
+- metal scrap,screech
+-halleck metal-roll-cage-hits-heavy
+-halleck metal-screech-and-scraping
+-
+- water,mud:
+-cgeffex large-splashes
+-
+- mud_cont, water_cont
+-justinbw water-spigget-onto-mud-1
+-justinbw water-spigget-onto-mud-2
+-
+- terrain,dirt:
+-halleck hit-with-dirt-spray-1
+-halleck hit-with-dirt-spray-1-body
+-halleck hit-with-dirt-spray-2-body
+-halleck hit-with-dirt-spray-3
+-
+- boost
+-nathanshadow thruster-level-ii