synched with trunk at revision 34793
[blender-staging.git] / build_files / package_spec / pacman / PKGBUILD
index 4a96580e0c5f5bcb821c8aacde627a95cb888c72..10fdacc95ffdab37fc953458c3086a694122ca4f 100644 (file)
@@ -1,50 +1,50 @@
-# Maintainer: Campbell Barton <ideasman42 at gmail dot com>
-
-# custom blender vars
-blender_srcdir=$(dirname $srcdir)"/../../.."
-blender_revision=$(svnversion $blender_srcdir)
-blender_version=$(grep BLENDER_VERSION $blender_srcdir/source/blender/blenkernel/BKE_blender.h | tr -dc 0-9)
-# blender_subversion=$(grep BLENDER_SUBVERSION $blender_srcdir/source/blender/blenkernel/BKE_blender.h | tr -dc 0-9)
-blender_ver_string=$(expr $blender_version / 100).$(expr $blender_version % 100)+svn$blender_revision
-
-pkgname=blender-beta
-pkgver=$blender_ver_string
-pkgrel=1
-pkgdesc="A fully integrated 3D graphics creation suite"
-arch=('i686' 'x86_64')
-url="www.blender.org"
-license=('GPL')
-groups=()
-depends=('libjpeg' 'libpng' 'openexr'  'python>=3.1' 'gettext' 'libxi' 'libxmu' 'mesa' 'freetype2' 'openal' 'sdl' 'libsndfile' 'libsamplerate' 'ffmpeg')
-makedepends=('cmake' 'svn')
-optdepends=()
-provides=('blender')
-conflicts=('blender')
-replaces=()
-backup=()
-options=()
-install=blender.install
-# use current svn to make the package.
-# source=(http://download.blender.org/source/$pkgname-$pkgver.tar.gz)
-# md5sums=('27edb80c82c25252d43d6a01980d953a') #generate with 'makepkg -g'
-source=()
-md5sums=()
-noextract=()
-
-build() {
-  mkdir -p $srcdir/build
-  cd $srcdir/build
-  cmake $blender_srcdir \
-    -DCMAKE_INSTALL_PREFIX:PATH=/usr \
-    -DCMAKE_BUILD_TYPE:STRING=Release \
-    -DWITH_PYTHON_INSTALL:BOOL=OFF \
-    -DWITH_OPENCOLLADA:BOOL=OFF
-
-  make
-}
-
-package() {
-  cd $srcdir/build
-  make DESTDIR="$pkgdir" install
-  python -m compileall $pkgdir/usr/share/blender
-}
+# Maintainer: Campbell Barton <ideasman42 at gmail dot com>\r
+\r
+# custom blender vars\r
+blender_srcdir=$(dirname $srcdir)"/../../.."\r
+blender_revision=$(svnversion $blender_srcdir)\r
+blender_version=$(grep BLENDER_VERSION $blender_srcdir/source/blender/blenkernel/BKE_blender.h | tr -dc 0-9)\r
+# blender_subversion=$(grep BLENDER_SUBVERSION $blender_srcdir/source/blender/blenkernel/BKE_blender.h | tr -dc 0-9)\r
+blender_ver_string=$(expr $blender_version / 100).$(expr $blender_version % 100)+svn$blender_revision\r
+\r
+pkgname=blender-beta\r
+pkgver=$blender_ver_string\r
+pkgrel=1\r
+pkgdesc="A fully integrated 3D graphics creation suite"\r
+arch=('i686' 'x86_64')\r
+url="www.blender.org"\r
+license=('GPL')\r
+groups=()\r
+depends=('libjpeg' 'libpng' 'openexr'  'python>=3.1' 'gettext' 'libxi' 'libxmu' 'mesa' 'freetype2' 'openal' 'sdl' 'libsndfile' 'libsamplerate' 'ffmpeg')\r
+makedepends=('cmake' 'svn')\r
+optdepends=()\r
+provides=('blender')\r
+conflicts=('blender')\r
+replaces=()\r
+backup=()\r
+options=()\r
+install=blender.install\r
+# use current svn to make the package.\r
+# source=(http://download.blender.org/source/$pkgname-$pkgver.tar.gz)\r
+# md5sums=('27edb80c82c25252d43d6a01980d953a') #generate with 'makepkg -g'\r
+source=()\r
+md5sums=()\r
+noextract=()\r
+\r
+build() {\r
+  mkdir -p $srcdir/build\r
+  cd $srcdir/build\r
+  cmake $blender_srcdir \\r
+    -DCMAKE_INSTALL_PREFIX:PATH=/usr \\r
+    -DCMAKE_BUILD_TYPE:STRING=Release \\r
+    -DWITH_PYTHON_INSTALL:BOOL=OFF \\r
+    -DWITH_OPENCOLLADA:BOOL=OFF\r
+\r
+  make\r
+}\r
+\r
+package() {\r
+  cd $srcdir/build\r
+  make DESTDIR="$pkgdir" install\r
+  python -m compileall $pkgdir/usr/share/blender\r
+}\r