graphics/openscad-mcad: Fix github filename mess.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2022-02-25 15:31:42 -05:00 committed by Willy Sudiarto Raharjo
parent 6fe651a705
commit d9a4048ca6
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 8 additions and 9 deletions

View file

@ -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

View file

@ -1,7 +1,7 @@
PRGNAM="openscad-mcad"
VERSION="2020.10.09.1ea4022"
HOMEPAGE="https://github.com/openscad/MCAD"
DOWNLOAD="https://github.com/openscad/MCAD/archive/1ea402208c3127ffb443931e9bb1681c191dacca/openscad-mcad-1ea402208c3127ffb443931e9bb1681c191dacca.tar.gz"
DOWNLOAD="https://github.com/openscad/MCAD/archive/1ea402208c3127ffb443931e9bb1681c191dacca/MCAD-1ea402208c3127ffb443931e9bb1681c191dacca.tar.gz"
MD5SUM="a86572e744abff686ee146274eda87f4"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""