summaryrefslogtreecommitdiff
path: root/graphics/librecad
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/librecad')
-rw-r--r--graphics/librecad/librecad.SlackBuild20
-rw-r--r--graphics/librecad/librecad.info6
2 files changed, 9 insertions, 17 deletions
diff --git a/graphics/librecad/librecad.SlackBuild b/graphics/librecad/librecad.SlackBuild
index 1ddb770574..835d677e87 100644
--- a/graphics/librecad/librecad.SlackBuild
+++ b/graphics/librecad/librecad.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for LibreCAD
-# Copyright 2011-2013 Fridrich von Stauffenberg <cancellor2@gmail.com>
+# Copyright 2011-2014 Fridrich von Stauffenberg <cancellor2@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=librecad
-VERSION=${VERSION:-1.0.4}
+VERSION=${VERSION:-2.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -48,21 +48,13 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $ORIG_PRGNAM-$VERSION
-tar xvf $CWD/v$VERSION.tar.?z* || tar xvf $CWD/$ORIG_PRGNAM-$VERSION.tar.?z*
+tar xvf $CWD/$VERSION.tar.?z* || tar xvf $CWD/$ORIG_PRGNAM-$VERSION.tar.?z*
cd $ORIG_PRGNAM-$VERSION
chown -R root:root .
-sed -i "s@/share/doc/$PRGNAM@/doc/$PRGNAM-$VERSION@" desktop/$PRGNAM.1
-
qmake $PRGNAM.pro
make
-( cd plugins
- qmake plugins.pro
- make
- make install
-)
-
mkdir -p $PKG/opt/$PRGNAM
cp -a unix/* $PKG/opt/$PRGNAM
@@ -70,17 +62,17 @@ mkdir -p $PKG/usr/{man/man1,bin}
cat desktop/$PRGNAM.1 | gzip -9c > $PKG/usr/man/man1/$PRGNAM.1.gz
cat $CWD/$PRGNAM.sh > $PKG/usr/bin/$PRGNAM
chmod 755 $PKG/usr/bin/$PRGNAM
+ln -s /opt/$PRGNAM/ttf2lff $PKG/usr/bin
mkdir -p $PKG/usr/share/{applications,pixmaps}
cp -a desktop/$PRGNAM.desktop $PKG/usr/share/applications
-cp -a res/main/$PRGNAM.png $PKG/usr/share/pixmaps
+cp -a $PRGNAM/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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cat README > $PKG/usr/doc/$PRGNAM-$VERSION/README
-cat gpl-2.0.txt > $PKG/usr/doc/$PRGNAM-$VERSION/LICENSE
+cp -a *.txt README* LICENSE* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/graphics/librecad/librecad.info b/graphics/librecad/librecad.info
index 7429860f81..813211d65c 100644
--- a/graphics/librecad/librecad.info
+++ b/graphics/librecad/librecad.info
@@ -1,8 +1,8 @@
PRGNAM="librecad"
-VERSION="1.0.4"
+VERSION="2.0.2"
HOMEPAGE="http://librecad.org"
-DOWNLOAD="https://github.com/LibreCAD/LibreCAD/archive/v1.0.4.tar.gz"
-MD5SUM="1cdad8ede79ef92a06f56267794af9d8"
+DOWNLOAD="https://github.com/LibreCAD/LibreCAD/archive/2.0.2.tar.gz"
+MD5SUM="0081a4028780d8a610c9f0aab8ac4eb6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="muParser"