summaryrefslogtreecommitdiff
path: root/graphics/fritzing/fritzing.SlackBuild
diff options
context:
space:
mode:
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 c116c0d2f3..8714f8d988 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