mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
graphics/leocad: Updated for version 17.07.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
09f8b4d52a
commit
569e1d9033
2 changed files with 7 additions and 17 deletions
|
@ -4,7 +4,7 @@
|
|||
# 3D design program for bricks
|
||||
|
||||
# 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.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -25,7 +25,7 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=leocad
|
||||
VERSION=${VERSION:-0.83.1}
|
||||
VERSION=${VERSION:-17.07}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -62,8 +62,8 @@ rm -rf $PKG
|
|||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM
|
||||
tar xvf $CWD/LeoCAD-Source-$VERSION.tgz
|
||||
cd $PRGNAM
|
||||
tar xvf $CWD/v$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -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 \
|
||||
-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
|
||||
CFLAGS="$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 \
|
||||
| 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
|
||||
cp -a docs/leocad.1 $PKG/usr/man/man1
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="leocad"
|
||||
VERSION="0.83.1"
|
||||
VERSION="17.07"
|
||||
HOMEPAGE="http://www.leocad.org/"
|
||||
DOWNLOAD="https://sourceforge.net/projects/slackbuildsdirectlinks/files/leocad/LeoCAD-Source-0.83.1.tgz"
|
||||
MD5SUM="352f6120968f45bf5fd892afa292c6fb"
|
||||
DOWNLOAD="https://github.com/leozide/leocad/archive/v17.07/leocad-17.07.tar.gz"
|
||||
MD5SUM="b31aa9169dbc86fa5a31d0a8e0a73831"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="leocad_pieces"
|
||||
|
|
Loading…
Reference in a new issue