summaryrefslogtreecommitdiff
path: root/libre/stuntrally-data-libre/PKGBUILD
diff options
context:
space:
mode:
authoraurelien <aurelien@cwb.io>2013-09-23 10:33:22 +0200
committeraurelien <aurelien@cwb.io>2013-09-23 10:33:22 +0200
commit2735c9d273c54b555681f30f5c685998fed7b484 (patch)
treef8172dbea44d1c4751a99a62fb236a14c9d2dc20 /libre/stuntrally-data-libre/PKGBUILD
parentd78a32a6ccb8663a62a093b54e947e2efc840fe0 (diff)
parent97f65e06566f3bb15bc7395624017b8e6ca0d043 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/stuntrally-data-libre/PKGBUILD')
-rw-r--r--libre/stuntrally-data-libre/PKGBUILD72
1 files changed, 72 insertions, 0 deletions
diff --git a/libre/stuntrally-data-libre/PKGBUILD b/libre/stuntrally-data-libre/PKGBUILD
new file mode 100644
index 000000000..fd5d175be
--- /dev/null
+++ b/libre/stuntrally-data-libre/PKGBUILD
@@ -0,0 +1,72 @@
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
+
+pkgname=stuntrally-data-libre
+_pkgname=stuntrally-data
+pkgver=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')
+source=("$_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 )
+replaces=$_pkgname
+conflicts=$_pkgname
+provides=$_pkgname=$pkgver
+sha256sums=('d987e8c05ed1f3f54468e75e2c1f68a9a4c59ceefa7429130d4f800b28821ae0'
+ 'a1ab9b11d9f5b6c4aa8e5a9028f5994e21446d96fda5762e427365e21cfe3d0e'
+ '8cf24da76bed18fd03a3166ba8b8da93be87a7e49b8aebe4135b8e0b1a36eb8a')
+prepare() {
+ # 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"
+}