aboutsummaryrefslogtreecommitdiff
path: root/graphics/openscad-mcad/openscad-mcad.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/openscad-mcad/openscad-mcad.SlackBuild')
-rw-r--r--graphics/openscad-mcad/openscad-mcad.SlackBuild15
1 files changed, 7 insertions, 8 deletions
diff --git a/graphics/openscad-mcad/openscad-mcad.SlackBuild b/graphics/openscad-mcad/openscad-mcad.SlackBuild
index 4072e1c4bccc9..b02c3bb32144b 100644
--- a/graphics/openscad-mcad/openscad-mcad.SlackBuild
+++ b/graphics/openscad-mcad/openscad-mcad.SlackBuild
@@ -32,9 +32,6 @@ TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
-# 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
@@ -46,19 +43,21 @@ OUTPUT=${OUTPUT:-/tmp}
set -e
+SRCNAM=MCAD
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf MCAD-$COMVER
-tar xvf $CWD/$PRGNAM-$COMVER.tar.?z
-cd MCAD-$COMVER
+rm -rf $SRCNAM-$COMVER
+tar xvf $CWD/$SRCNAM-$COMVER.tar.gz
+cd $SRCNAM-$COMVER
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 \
+ -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ -exec chmod 644 {} \+
mkdir -p $PKG/usr/share/openscad/libraries/MCAD/bitmap