diff options
Diffstat (limited to 'graphics/leocad/leocad.SlackBuild')
-rw-r--r-- | graphics/leocad/leocad.SlackBuild | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/graphics/leocad/leocad.SlackBuild b/graphics/leocad/leocad.SlackBuild index 540f0f5a47ef..104ab6719e78 100644 --- a/graphics/leocad/leocad.SlackBuild +++ b/graphics/leocad/leocad.SlackBuild @@ -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 {} \; |