summaryrefslogtreecommitdiff
path: root/graphics/makehuman/makehuman.SlackBuild
diff options
context:
space:
mode:
authorGiorgio Peron <giorgio.peron@gmail.com>2014-03-23 19:11:08 +0100
committerErik Hanson <erik@slackbuilds.org>2014-04-12 13:58:47 -0500
commitdd6fa7101d9aaeb7c155c7a321b4b9cbab7578db (patch)
treef40ee39c9932691b1cdd84f5b796e9a592f46ecf /graphics/makehuman/makehuman.SlackBuild
parentda2f56cddc57dfd089c654ccbae85eed31f16a84 (diff)
downloadslackbuilds-dd6fa7101d9aaeb7c155c7a321b4b9cbab7578db.tar.gz
graphics/makehuman: Updated for version 1.0.0.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'graphics/makehuman/makehuman.SlackBuild')
-rw-r--r--graphics/makehuman/makehuman.SlackBuild66
1 files changed, 8 insertions, 58 deletions
diff --git a/graphics/makehuman/makehuman.SlackBuild b/graphics/makehuman/makehuman.SlackBuild
index 0f57d5e965..accca06feb 100644
--- a/graphics/makehuman/makehuman.SlackBuild
+++ b/graphics/makehuman/makehuman.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for makehuman
-# Copyright 2012 Giorgio Peron Campodarsego, PD, Italy giorgio.peron@gmail.com
+# Copyright 2012-2014 Giorgio Peron, Campodarsego, PD, Italy giorgio.peron@gmail.com
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=makehuman
-VERSION=${VERSION:-1.0a7}
+VERSION=${VERSION:-1.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,72 +40,22 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
- LIBDIRSUFFIX=""
- BINDIRSUFFIX="32bit"
- ARCH1="i386"
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
- BINDIRSUFFIX="32bit"
- ARCH1="i386"
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
- BINDIRSUFFIX="64bit"
- ARCH1="amd64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM
-tar xjvf $CWD/$PRGNAM-$VERSION-python27-$ARCH1.tbz2
-cd $PRGNAM
-chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
-
-scons
-mkdir -p $PKG/usr/bin
-mkdir -p $PKG/usr/share/makehuman
-cp -a \
- main.py \
- makehuman \
- mh_icon.bmp \
- setup.nsi \
- $PKG/usr/share/makehuman
-cp -r $TMP/$PRGNAM/apps $PKG/usr/share/makehuman
-cp -r $CWD/makehuman.sh $PKG/usr/bin/makehuman
-chmod +x $PKG/usr/bin/makehuman
-cp -r $TMP/$PRGNAM/core $PKG/usr/share/makehuman
-cp -r $TMP/$PRGNAM/data $PKG/usr/share/makehuman
-cp -r $TMP/$PRGNAM/etc $PKG/usr/share/makehuman
-cp -r $TMP/$PRGNAM/importers $PKG/usr/share/makehuman
-cp -r $TMP/$PRGNAM/plugins $PKG/usr/share/makehuman
-cp -r $TMP/$PRGNAM/shared $PKG/usr/share/makehuman
-cp -r $TMP/$PRGNAM/utils $PKG/usr/share/makehuman
-cp -r $TMP/$PRGNAM/tools $PKG/usr/share/makehuman
-mkdir -p $PKG/usr/share/applications
-cp -r $CWD/makehuman.desktop $PKG/usr/share/applications
+# pure Python program
+rpm -i --nodeps --root $PKG $CWD/$PRGNAM-$VERSION-1.noarch.rpm
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+rm -rf $PKG/var
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- license.txt \
- docs \
- $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/$PRGNAM/licenses $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/$PRGNAM/license.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install