aboutsummaryrefslogtreecommitdiff
path: root/graphics/librecad/librecad.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/librecad/librecad.SlackBuild')
-rw-r--r--graphics/librecad/librecad.SlackBuild17
1 files changed, 8 insertions, 9 deletions
diff --git a/graphics/librecad/librecad.SlackBuild b/graphics/librecad/librecad.SlackBuild
index 64f1424d5e6fd..66c1432fbae53 100644
--- a/graphics/librecad/librecad.SlackBuild
+++ b/graphics/librecad/librecad.SlackBuild
@@ -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