summaryrefslogtreecommitdiff
path: root/graphics/librecad/librecad.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/librecad/librecad.SlackBuild')
-rw-r--r--graphics/librecad/librecad.SlackBuild20
1 files changed, 6 insertions, 14 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