modify pacman file not to compile templates & presets.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 4 Oct 2011 23:00:38 +0000 (23:00 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 4 Oct 2011 23:00:38 +0000 (23:00 +0000)
build_files/package_spec/pacman/PKGBUILD

index 0f070f3d5583e9c0e6628adf03f71fd4bc79129f..e59d1cf31d752a9f7aa44a99cfff930f99f1c0df 100644 (file)
@@ -12,10 +12,12 @@ blender_version_char=$(sed -ne 's/.*BLENDER_VERSION_CHAR.*\([a-z]\)$/\1/p' $blen
 # map the version a -> 1
 # not to be confused with blender's internal subversions
 if [ "$blender_version_char" ]; then
-    blender_version=${blender_version}.$(expr index abcdefghijklmnopqrstuvwxyz $blender_version_char)
+    blender_version_full=${blender_version}.$(expr index abcdefghijklmnopqrstuvwxyz $blender_version_char)
+else
+       blender_version_full=${blender_version}
 fi
 
-blender_ver_string=$blender_version+svn$blender_revision
+blender_ver_string=$blender_version+svn$blender_version_full
 
 pkgname=blender-snapshot
 pkgver=$blender_ver_string
@@ -61,5 +63,8 @@ build() {
 package() {
   cd $srcdir/build
   make DESTDIR="$pkgdir" install
-  python -m compileall $pkgdir/usr/share/blender
+  python -m compileall \
+       $pkgdir/usr/share/blender/$blender_version/scripts/startup \
+       $pkgdir/usr/share/blender/$blender_version/scripts/modules \
+       $pkgdir/usr/share/blender/$blender_version/scripts/addons
 }