summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorPhilip van der Hoeven <philip@vd-hoeven.nl>2015-02-10 20:34:11 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-10 20:34:11 +0700
commit0d27f52cf53d6516950faf4f981e396f77dc7ea3 (patch)
tree08369625e5a26bb732cc94617be1cfbb3bcf4374 /graphics
parent83b6b4a14ade2e7682148f816b355619a4e20586 (diff)
downloadslackbuilds-0d27f52cf53d6516950faf4f981e396f77dc7ea3.tar.gz
graphics/leocad: Fix shortcut.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/leocad/leocad.SlackBuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/graphics/leocad/leocad.SlackBuild b/graphics/leocad/leocad.SlackBuild
index c585f80877..4a7a0d61d7 100644
--- a/graphics/leocad/leocad.SlackBuild
+++ b/graphics/leocad/leocad.SlackBuild
@@ -26,7 +26,7 @@
PRGNAM=leocad
VERSION=${VERSION:-0.81}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -68,7 +68,7 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# This seems to be an error in de qrc file
sed -i 's/leocad_pt.qm/leocad_pt.ts/' leocad.qrc
@@ -84,19 +84,16 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
# 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
+ln -s /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
+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 \
- docs/CREDITS.txt docs/README.txt docs/COPYING.txt \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a 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