[arch-commits] Commit in (4 files)

Sven-Hendrik Haase svenstaro at nymeria.archlinux.org
Tue Feb 26 06:36:12 UTC 2013


    Date: Tuesday, February 26, 2013 @ 07:36:11
  Author: svenstaro
Revision: 84920

Moving stuntrally from AUR

Added:
  stuntrally/
  stuntrally/repos/
  stuntrally/trunk/
  stuntrally/trunk/PKGBUILD

----------+
 PKGBUILD |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

Added: stuntrally/trunk/PKGBUILD
===================================================================
--- stuntrally/trunk/PKGBUILD	                        (rev 0)
+++ stuntrally/trunk/PKGBUILD	2013-02-26 06:36:11 UTC (rev 84920)
@@ -0,0 +1,53 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Sven Schneider <archlinux.sandmann at googlemail.com>
+# Contributor: Jason Melton <jason.melton at gmail.com>
+
+pkgname=stuntrally
+pkgver=1.9
+pkgrel=1
+pkgdesc="Stunt Rally game with track editor, based on VDrift"
+arch=('i686' 'x86_64')
+license=('GPL3')
+url="http://code.google.com/p/vdrift-ogre"
+depends=('libvorbis' 'mygui' 'sdl' 'enet' 'bullet')
+makedepends=('cmake' 'boost')
+source=(src_${pkgver}.tar.gz::https://nodeload.github.com/${pkgname}/stuntrally/tar.gz/${pkgver}
+        tracks_${pkgver}.tar.gz::https://nodeload.github.com/${pkgname}/tracks/tar.gz/${pkgver})
+md5sums=('3253c5a64a6d3f4fc4b756ea431286de'
+         '77e118926c970a445b91d688a4f46799')
+
+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
+
+  rm -rf "${pkgdir}/usr/share/stuntrally/tracks/build"
+}




More information about the arch-commits mailing list