summaryrefslogtreecommitdiffstats
path: root/graphics/blender/blender.SlackBuild
diff options
context:
space:
mode:
author Robby Workman2011-07-08 13:10:14 +0200
committer Niels Horn2011-07-08 13:10:14 +0200
commit732c3cd772a77df0cdb6bc900cad0615f674ab1e (patch)
tree2e2d125dfa1753a2ab6bfec47f4ee49618d865b6 /graphics/blender/blender.SlackBuild
parent93ac1dc4d1b1646720e9fa29e66069b7c0d8ae45 (diff)
downloadslackbuilds-732c3cd772a77df0cdb6bc900cad0615f674ab1e.tar.gz
graphics/blender: Updated for version 2.58.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'graphics/blender/blender.SlackBuild')
-rw-r--r--graphics/blender/blender.SlackBuild62
1 files changed, 26 insertions, 36 deletions
diff --git a/graphics/blender/blender.SlackBuild b/graphics/blender/blender.SlackBuild
index a5b4c6b84c..893757a67b 100644
--- a/graphics/blender/blender.SlackBuild
+++ b/graphics/blender/blender.SlackBuild
@@ -20,18 +20,22 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Thanks to Giorgio Peron <giorgio.peron@gmail.com> for some build tips
+
PRGNAM=blender
-VERSION=${VERSION:-2.49b}
+VERSION=${VERSION:-2.58}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Leave me alone? If left as yes, then we'll leave the libGL* shared libaries
-# that are shipped with blender; otherwise, we'll remove them and depend on
-# the ones that are shipped with Slackware
-LMTFA=${LMTFA:-yes}
+SRCVERSION=$VERSION-linux-glibc27
+
+# We'll remove the libGL* shared libaries that are shipped with blender (and
+# instead use the ones that are shipped with Slackware's Xorg)
+# If this is undesirable for you, pass LMTFA=yes to the script when building
+LMTFA=${LMTFA:-no}
case "$( uname -m )" in
- i?86) ARCH=i386 ;;
+ i?86) ARCH=i686 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -45,7 +49,7 @@ set -e
if [ "$ARCH" = "x86_64" ]; then
break
-elif [ "$ARCH" = "i386" ]; then
+elif [ "$ARCH" = "i686" ]; then
break
else
printf "\n\n$ARCH is not supported... \n"
@@ -55,58 +59,44 @@ fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION-linux-glibc236-py26-${ARCH}.tar.bz2
-cd $PRGNAM-$VERSION-linux-glibc236-py26-${ARCH}
+rm -rf $PRGNAM-$SRCVERSION-${ARCH}
+tar xvf $CWD/$PRGNAM-$SRCVERSION-${ARCH}.tar.bz2
+cd $PRGNAM-$SRCVERSION-${ARCH}
chown -R root:root .
# Move the docs to our standard location first
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-mv \
- BlenderQuickStart.pdf *license.txt blender.html copyright.txt release*.txt \
- $PKG/usr/doc/$PRGNAM-$VERSION
-
-# The ".blender" directory shipped here is used by default, but then, it
-# shouldn't be writable by anyone but root, so we'll do something else
-mkdir -p $PKG/usr/share/blender
-mv .blender $PKG/usr/share/blender/dot-blender
-cat << EOF > $PKG/usr/share/blender/README.dot-blender
-This contains a "skeleton directory" for what should be a default
-\$HOME/.blender directory for every user. Don't delete it.
-EOF
+mv GPL-license.txt copyright.txt Python-license.txt readme.html \
+ $PKG/usr/doc/$PRGNAM-$VERSION
# Now move everything else
mkdir -p $PKG/opt/blender
mv * $PKG/opt/blender
+# Add profile scripts to append to PATH
+mkdir -p $PKG/etc/profile.d
+cp $CWD/profile.d/* $PKG/etc/profile.d/
+chmod 0755 $PKG/etc/profile.d/*
+
# Leave me alone?
if [ "$LMTFA" != "yes" ]; then
rm -f $PKG/opt/blender/lib/libGL*
fi
# Put symlinks to icons in the standard places
-for size in 16x16 22x22 32x32 ; do
+for size in 16x16 22x22 24x24 32x32 48x48 ; do
mkdir -p $PKG/usr/share/icons/hicolor/$size/apps
- cd $PKG/usr/share/icons/hicolor/$size/apps
- ln -s /opt/blender/icons/$size/blender.png .
+ ln -s /opt/blender/icons/$size/blender.png \
+ $PKG/usr/share/icons/hicolor/$size/apps/
done
mkdir -p $PKG/usr/share/icons/hicolor/scalable/apps
-( cd $PKG/usr/share/icons/hicolor/scalable/apps
- ln -s /opt/blender/icons/scalable/blender.svg .
-)
+ ln -s /opt/blender/icons/scalable/blender.svg \
+ $PKG/usr/share/icons/hicolor/scalable/apps/
# Add a desktop menu entry
mkdir -p $PKG/usr/share/applications
cat $CWD/blender.desktop > $PKG/usr/share/applications/blender.desktop
-# Finally, let's create wrapper scripts to handle setting up
-# users with the default $HOME/.blender directory if needed
-mkdir $PKG/usr/bin
-cat $CWD/blender-wrapper > $PKG/usr/bin/blender
-cat $CWD/blenderplayer-wrapper > $PKG/usr/bin/blenderplayer
-cat $CWD/blender-softwaregl-wrapper > $PKG/usr/bin/blender-softwaregl
-chmod 0755 $PKG/usr/bin/*
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh