graphics/leocad: Updated for version 0.81 + new maintainer.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Philip van der Hoeven 2015-02-05 06:30:10 +07:00 committed by Willy Sudiarto Raharjo
parent 99be6c968a
commit 23b5526429
2 changed files with 27 additions and 20 deletions

View file

@ -4,6 +4,7 @@
# 3D design program for bricks
# Copyright 2009-2013 Niels Horn, Rio de Janeiro, Brazil
# Copyright 2015 Philip van der Hoeven, Almere, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,10 +24,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# revision date 2013/03/24
PRGNAM=leocad
VERSION=${VERSION:-0.79.3}
VERSION=${VERSION:-0.81}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -62,7 +61,7 @@ set -e
rm -rf $TMP/$PRGNAM $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
tar xvf $CWD/$PRGNAM-$VERSION-src.tgz
tar xvf $CWD/LeoCAD-Source-$VERSION.tgz
cd $PRGNAM
chown -R root:root .
find -L . \
@ -71,25 +70,33 @@ 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 {} \;
# Include libs gcc-4.7 won't find by itself
sed "/^LIBS/s/=/= -lX11 -ldl/" -i Makefile
# This seems to be an error in de qrc file
sed -i 's/leocad_pt.qm/leocad_pt.ts/' leocad.qrc
make config PREFIX=/usr DESTDIR=$PKG
CFLAGS="$SLKCFLAGS" CPPFLAGS="$SLKCFLAGS" make
make install
qmake DISABLE_UPDATE_CHECK=1 DOCS_DIR=/usr/doc/$PRGNAM-$VERSION MAN_DIR=/usr/man/man1 leocad.pro
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make
make INSTALL_ROOT="$PKG" install
strip --strip-unneeded $PKG/usr/bin/$PRGNAM
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
# Move & Compress man pages
mv $PKG/usr/share/man $PKG/usr/man
# Fix icon
mkdir -p $PKG/usr/share/pixmaps
ln -s $PKG/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 {} \;
for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
CREDITS.txt README.txt docs/COPYING.txt docs/INSTALL.txt \
docs/LINUX.txt docs/TODO.txt $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
docs/CREDITS.txt docs/README.txt docs/COPYING.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,10 +1,10 @@
PRGNAM="leocad"
VERSION="0.79.3"
VERSION="0.81"
HOMEPAGE="http://www.leocad.org/"
DOWNLOAD="http://leocad.googlecode.com/files/leocad-0.79.3-src.tgz"
MD5SUM="edea92ce268b761c9da46742e78c106d"
DOWNLOAD="https://googledrive.com/host/0B4QpN1vpGh_sUWJZSkVVaEtzcW8/LeoCAD-Source-0.81.tgz"
MD5SUM="e964da27b6ea64e44aa9ac0594c245d7"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="leocad_pieces"
MAINTAINER="Niels Horn"
EMAIL="niels.horn@gmail.com"
MAINTAINER="Philip van der Hoeven"
EMAIL="philip@vd-hoeven.nl"