part of a patch from Dan Eicher with some edits.
[blender-staging.git] / build_files / package_spec / pacman / PKGBUILD
index 6102be5833cc26574c67e13bc28a36e13bb0cb9e..3cbd452dbf49e8d012028259dcc0f90ca7956c0c 100644 (file)
@@ -2,7 +2,8 @@
 
 # custom blender vars
 blender_srcdir=$(dirname $startdir)"/../.."
-blender_revision=$(svnversion $blender_srcdir)
+# value may be formatted: 35042:35051M
+blender_revision=$(svnversion $blender_srcdir | cut -d: -f2 | tr -dc 0-9)
 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
@@ -40,7 +41,7 @@ build() {
     -DWITH_PYTHON_INSTALL:BOOL=OFF \
     -DWITH_OPENCOLLADA:BOOL=OFF
 
-  make
+  make $MAKEFLAGS
 }
 
 package() {