aboutsummaryrefslogtreecommitdiff
path: root/graphics/blender
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-04 22:05:36 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-04 22:05:36 -0400
commit665f38b5309545c1ef4dfe75621e0429d086eb32 (patch)
treef5a15a9a630d6a98692e5fc03253a1f41058ef48 /graphics/blender
parent5c0fa7644c3a24a5947e6c38aad5f5378f560cea (diff)
graphics/blender: Fix doc and icon dirs, strip python stuff.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'graphics/blender')
-rw-r--r--graphics/blender/blender.SlackBuild30
1 files changed, 19 insertions, 11 deletions
diff --git a/graphics/blender/blender.SlackBuild b/graphics/blender/blender.SlackBuild
index 5143dc1797344..4060259d04998 100644
--- a/graphics/blender/blender.SlackBuild
+++ b/graphics/blender/blender.SlackBuild
@@ -24,13 +24,19 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220404 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - strip the python interpreter and one shared lib that weren't already.
+# - remove the broken symlinks in the icons dir. upstream doesn't include
+# PNG icons (I assume it did at one time), only an SVG one.
+# - add SlackBuild to doc dir.
+
# Thanks to Giorgio Peron <giorgio.peron@gmail.com> for some build tips
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=blender
VERSION=${VERSION:-2.90.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -47,9 +53,6 @@ case "$( uname -m )" in
*) ARCH=$( uname -m ) ;;
esac
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -80,6 +83,7 @@ chown -R root:root .
# Move the docs to our standard location first
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mv *.txt readme.html \
$PKG/usr/doc/$PRGNAM-$VERSION
@@ -97,14 +101,18 @@ 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 24x24 32x32 48x48 ; do
- mkdir -p $PKG/usr/share/icons/hicolor/$size/apps
- ln -s /opt/blender/icons/$size/apps/blender.png \
- $PKG/usr/share/icons/hicolor/$size/apps/
-done
+# 20220404 bkw: a couple of things aren't stripped... this
+# is noticeably faster than the template find|strip.
+find $PKG/opt/blender -type f -print0 | \
+ xargs -0 file -m /etc/file/magic/elf | \
+ grep 'ELF.*dynamic.*not stripped' | \
+ cut -d: -f1 | xargs strip
+
+# Put symlinks to icons in the standard places.
+# 20220404 bkw: looks like upstream got rid of PNG icons and only
+# ships an SVG (which has moved).
mkdir -p $PKG/usr/share/icons/hicolor/scalable/apps
- ln -s /opt/blender/icons/scalable/apps/blender.svg \
+ ln -s ../../../../../../opt/blender/blender.svg \
$PKG/usr/share/icons/hicolor/scalable/apps/
# Add a desktop menu entry