graphics/leocad: Updated for version 17.07.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Philip van der Hoeven 2017-12-05 22:22:58 +07:00 committed by Willy Sudiarto Raharjo
parent 09f8b4d52a
commit 569e1d9033
2 changed files with 7 additions and 17 deletions

View file

@ -4,7 +4,7 @@
# 3D design program for bricks # 3D design program for bricks
# Copyright 2009-2013 Niels Horn, Rio de Janeiro, Brazil # Copyright 2009-2013 Niels Horn, Rio de Janeiro, Brazil
# Copyright 2015-2016 Philip van der Hoeven, Almere, The Netherlands # Copyright 2015-2017 Philip van der Hoeven, Almere, The Netherlands
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -25,7 +25,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=leocad PRGNAM=leocad
VERSION=${VERSION:-0.83.1} VERSION=${VERSION:-17.07}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -62,8 +62,8 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM rm -rf $PRGNAM
tar xvf $CWD/LeoCAD-Source-$VERSION.tgz tar xvf $CWD/v$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find -L . \ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -71,11 +71,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
sed -i -e 's/isnan/std::isnan/g' common/camera.cpp
# This seems to be an error in de qrc file
sed -i 's/leocad_pt.qm/leocad_pt.ts/' leocad.qrc
qmake DISABLE_UPDATE_CHECK=1 DOCS_DIR=/usr/doc/$PRGNAM-$VERSION MAN_DIR=/usr/man/man1 leocad.pro qmake DISABLE_UPDATE_CHECK=1 DOCS_DIR=/usr/doc/$PRGNAM-$VERSION MAN_DIR=/usr/man/man1 leocad.pro
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
@ -85,11 +80,6 @@ make INSTALL_ROOT="$PKG" install
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ 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 | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Fix icon
mkdir -p $PKG/usr/share/pixmaps
ln -s /usr/share/icons/hicolor/scalable/mimetypes/application-vnd.leocad.svg $PKG/usr/share/pixmaps/leocad.svg
sed -i 's%Icon=leocad.svg%Icon=leocad%' $PKG/usr/share/applications/leocad.desktop
mkdir -p $PKG/usr/man/man1 mkdir -p $PKG/usr/man/man1
cp -a docs/leocad.1 $PKG/usr/man/man1 cp -a docs/leocad.1 $PKG/usr/man/man1
find $PKG/usr/man -type f -exec gzip -9 {} \; find $PKG/usr/man -type f -exec gzip -9 {} \;

View file

@ -1,8 +1,8 @@
PRGNAM="leocad" PRGNAM="leocad"
VERSION="0.83.1" VERSION="17.07"
HOMEPAGE="http://www.leocad.org/" HOMEPAGE="http://www.leocad.org/"
DOWNLOAD="https://sourceforge.net/projects/slackbuildsdirectlinks/files/leocad/LeoCAD-Source-0.83.1.tgz" DOWNLOAD="https://github.com/leozide/leocad/archive/v17.07/leocad-17.07.tar.gz"
MD5SUM="352f6120968f45bf5fd892afa292c6fb" MD5SUM="b31aa9169dbc86fa5a31d0a8e0a73831"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="leocad_pieces" REQUIRES="leocad_pieces"