aboutsummaryrefslogtreecommitdiff
path: root/graphics/fritzing/fritzing.SlackBuild
diff options
context:
space:
mode:
authorR. S. Ananda Murthy <rsamurti@gmail.com>2015-02-19 18:49:23 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-19 18:49:23 +0700
commit91754a7d75835472d91c9cdf15d8e764313968cb (patch)
tree1beddbdbda85095d41e26df3d9610f2d18711534 /graphics/fritzing/fritzing.SlackBuild
parent0d2ecf45181dce12bf57878ee678b2bd69330c19 (diff)
graphics/fritzing: Updated for version 0.9.1b.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/fritzing/fritzing.SlackBuild')
-rw-r--r--graphics/fritzing/fritzing.SlackBuild29
1 files changed, 14 insertions, 15 deletions
diff --git a/graphics/fritzing/fritzing.SlackBuild b/graphics/fritzing/fritzing.SlackBuild
index c116c0d2f32e9..8714f8d9881ef 100644
--- a/graphics/fritzing/fritzing.SlackBuild
+++ b/graphics/fritzing/fritzing.SlackBuild
@@ -5,6 +5,9 @@
# Copyright 2010-2013 Niels Horn, Rio de Janeiro, RJ, Brazil
# All rights reserved.
+
+# This script has been edited by R. S. Ananda Murthy, Mysore, India
+# for this version.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
@@ -26,7 +29,7 @@
# Revision date 2013/03/26
PRGNAM=fritzing
-VERSION=${VERSION:-0.8.7b}
+VERSION=${VERSION:-0.9.1b}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -63,19 +66,18 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION.source
-tar xvf $CWD/$PRGNAM-$VERSION.source.tar.bz2
-cd $PRGNAM-$VERSION.source
+unzip $CWD/$PRGNAM-$VERSION.source.zip
+cd $PRGNAM-app-master
chown -R root:root .
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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -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 {} \;
-qmake \
+qmake-qt5 \
"QMAKE_CXXFLAGS+=$SLKCFLAGS" \
"QMAKE_CFLAGS+=$SLKCFLAGS"
-
make
# "install" program
@@ -83,10 +85,9 @@ mkdir -p $PKG/usr/bin
cp Fritzing $PKG/usr/bin/
# "install" data
mkdir -p $PKG/usr/share/$PRGNAM
-cp -a bins parts sketches translations \
- $PKG/usr/share/$PRGNAM/
+cp -a bins parts sketches translations $PKG/usr/share/$PRGNAM/
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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/share/{applications,pixmaps}
@@ -94,9 +95,7 @@ cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
cat resources/images/${PRGNAM}_icon.png > $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/
-cp -a \
- LICENSE.* README.txt \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE.* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install