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

blender2.5a2/PKGBUILD

By: a guest on Jul 8th, 2010  |  syntax: Bash  |  size: 1.58 KB  |  views: 88  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Mikael Eriksson <mikael_eriksson@miffe.org>
  2.  
  3. pkgname=blender2.5a2
  4. pkgver=2.5a2
  5. pkgrel=2
  6. pkgdesc="A fully integrated 3D graphics creation suite (binary version)"
  7. arch=('i686' 'x86_64')
  8. url="http://blender.org/"
  9. license=('GPL')
  10. depends=('libgl' 'libjpeg6' 'libx11' 'libxau' 'libxcb' 'libxdamage' 'libxdmcp' 'libxext' 'libxfixes' 'libxi' 'libxxf86vm' 'python' 'sdl' 'zlib')
  11. makedepends=('librsvg')
  12. provides=('blender')
  13. conflicts=('blender')
  14. install=blender.install
  15. source=('blender.desktop')
  16. md5sums=('b5b9720b9430b1f5e2aa0b2df533fed8')
  17.  
  18. case ${CARCH} in
  19.   i686)
  20.     source=(${source[@]} 'http://download.blender.org/release//Blender2.50alpha/blender-2.5-alpha2-linux-glibc27-i686.tar.bz2')
  21.     md5sums=(${md5sums[@]} '5bf40601c7077e0b2c4bc1ab70acdde9')
  22.     ;;
  23.   x86_64)
  24.     source=(${source[@]} 'http://download.blender.org/release//Blender2.50alpha/blender-2.5-alpha2-linux-glibc27-x86_64.tar.bz2')
  25.     md5sums=(${md5sums[@]} 'd24958bc594fc7d16018de74481b0c2a')
  26.     ;;
  27. esac
  28.  
  29. build() {
  30.   mkdir -p $pkgdir/usr/{share/blender,share/icons/hicolor,bin}
  31.   case ${CARCH} in
  32.     i686)
  33.       cd $srcdir/blender-2.5-alpha2-linux-glibc27-i686
  34.       ;;
  35.     x86_64)
  36.       cd $srcdir/blender-2.5-alpha2-linux-glibc27-x86_64
  37.       ;;
  38.   esac
  39.  
  40.   cp -r .blender/locale $pkgdir/usr/share
  41.   cp -r .blender/scripts $pkgdir/usr/share/blender
  42.   cp -r icons/* $pkgdir/usr/share/icons/hicolor
  43.   cp blender $pkgdir/usr/bin
  44.   cp blenderplayer $pkgdir/usr/bin
  45.  
  46.   # stolen from blender in extra
  47.   install -Dm644 $srcdir/blender.desktop $pkgdir/usr/share/applications/blender.desktop
  48. }
clone this paste RAW Paste Data