graphics/librecad: Updated for version 1.0.2.

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
Fridrich von Stauffenberg 2012-04-29 19:57:16 -04:00 committed by Erik Hanson
parent 0e6e5316f4
commit f040c91149
3 changed files with 14 additions and 13 deletions

View file

@ -1,2 +1,4 @@
LibreCAD (former CADuntu) is a free and open source 2D CAD
application, started as a fork of QCad Community Edition.
This requires muParser.

View file

@ -2,7 +2,7 @@
# Slackware build script for LibreCAD
# Copyright 2011 Fridrich von Stauffenberg <cancellor2@gmail.com>
# Copyright 2011-2012 Fridrich von Stauffenberg <cancellor2@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,14 +23,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=librecad
VERSION=${VERSION:-1.0.1}
VERSION=${VERSION:-1.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ORIG_PRGNAM=LibreCAD
ORIG_FILENAME=$ORIG_PRGNAM-$ORIG_PRGNAM
ORIG_DIRNAME=$ORIG_FILENAME-1df9fb8
ORIG_VERSION=v$VERSION-0-g267a1bc
ORIG_VERSION=v$VERSION-0-ga6826ad
ORIG_DIRNAME=$ORIG_PRGNAM-$ORIG_PRGNAM-a5c34b2
ORIG_FILENAME=$ORIG_PRGNAM-$ORIG_PRGNAM-$ORIG_VERSION.tar.gz
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@ -51,12 +51,11 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $ORIG_DIRNAME
tar xvf $CWD/$ORIG_FILENAME-$ORIG_VERSION.tar.gz
tar xvf $CWD/$ORIG_FILENAME
cd $ORIG_DIRNAME
chown -R root:root .
sed -i "s@/share/doc/$PRGNAM@/doc/$PRGNAM-$VERSION@" desktop/$PRGNAM.1
sed -i "/support\/doc/s/#cp/cp/g" scripts/postprocess-unix.sh
qmake $PRGNAM.pro
make
@ -76,8 +75,8 @@ cat $CWD/$PRGNAM.sh > $PKG/usr/bin/$PRGNAM
chmod 755 $PKG/usr/bin/$PRGNAM
mkdir -p $PKG/usr/share/{applications,pixmaps}
cp desktop/$PRGNAM.desktop $PKG/usr/share/applications
cp res/main/$PRGNAM.png $PKG/usr/share/pixmaps
cp -a desktop/$PRGNAM.desktop $PKG/usr/share/applications
cp -a res/main/$PRGNAM.png $PKG/usr/share/pixmaps
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

View file

@ -1,10 +1,10 @@
PRGNAM="librecad"
VERSION="1.0.1"
VERSION="1.0.2"
HOMEPAGE="http://librecad.org"
DOWNLOAD="https://github.com/LibreCAD/LibreCAD/tarball/v1.0.1/LibreCAD-LibreCAD-v1.0.1-0-g267a1bc.tar.gz"
MD5SUM="30d8ce6461bdf852c27ea753361b11ae"
DOWNLOAD="https://github.com/LibreCAD/LibreCAD/tarball/v1.0.2/LibreCAD-LibreCAD-v1.0.2-0-ga6826ad.tar.gz"
MD5SUM="afaa38dc54fc9a694b17aed19b1a3269"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Fridrich von Stauffenberg"
EMAIL="cancellor2@gmail.com"
APPROVED="Niels Horn"
APPROVED="dsomero"