Want more features on Pastebin? Sign Up, it's FREE!
Guest

pkbuild ogre-procedural-hg

By: a guest on Jul 8th, 2013  |  syntax: Bash  |  size: 1.02 KB  |  views: 2  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
  2. pkgname=ogre-procedural-hg
  3. pkgver=535.b53a2c4c7704
  4. pkgrel=1
  5. pkgdesc="Procedural geometry for Ogre3D"
  6. arch=(i686 x86_64)
  7. url="http://code.google.com/p/ogre-procedural/"
  8. license=('MIT')
  9. depends=('ogre')
  10. makedepends=('mercurial')
  11. provides=('ogre-procedural')
  12. conflicts=('ogre-procedural')
  13.  
  14. _hgrepo="ogre-procedural"
  15. source=("${_hgrepo}::hg+https://ogre-procedural.googlecode.com/hg")
  16. md5sums=("SKIP")
  17.  
  18. pkgver() {
  19.   cd "${srcdir}/${_hgrepo}"
  20.   echo $(hg identify -n).$(hg identify -i)
  21. }
  22.  
  23. build() {
  24.   cd "$srcdir"
  25.   msg "Connecting to Mercurial server...."
  26.  
  27.   msg "Mercurial checkout done or server timeout"
  28.   msg "Starting make..."
  29.  
  30.   rm -rf "$srcdir/$_hgrepo-build"
  31.   mkdir "$srcdir/$_hgrepo-build"
  32.   cd "$srcdir/$_hgrepo-build"
  33.  
  34.   #
  35.   # BUILD HERE
  36.   #
  37.   cmake "$srcdir/$_hgrepo" \
  38.         -DCMAKE_INSTALL_PREFIX=/usr \
  39.         -DOgreProcedural_BUILD_SAMPLES=FALSE
  40.   make
  41. }
  42.  
  43. package() {
  44.   cd "$srcdir/$_hgrepo-build"
  45.   make DESTDIR="$pkgdir/" install
  46. }
clone this paste RAW Paste Data