summaryrefslogtreecommitdiff
path: root/graphics/fritzing
diff options
context:
space:
mode:
authorR. S. Ananda Murthy <rsamurti@gmail.com>2019-06-09 04:41:47 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-06-09 05:32:01 +0700
commit20bf6a2a08804f7ff45de63916cc1235b50d881f (patch)
treed8ae9bf004a88c7bdfcdd330870de2b7ab5044de /graphics/fritzing
parent6b264be06d0940d0fe64a840d3ab1a1b12152ecf (diff)
downloadslackbuilds-20bf6a2a08804f7ff45de63916cc1235b50d881f.tar.gz
graphics/fritzing: Updated for version 0.9.3b.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/fritzing')
-rw-r--r--graphics/fritzing/Fritzing.sh5
-rw-r--r--graphics/fritzing/fritzing.SlackBuild39
-rw-r--r--graphics/fritzing/fritzing.desktop12
-rw-r--r--graphics/fritzing/fritzing.info10
4 files changed, 42 insertions, 24 deletions
diff --git a/graphics/fritzing/Fritzing.sh b/graphics/fritzing/Fritzing.sh
new file mode 100644
index 0000000000..d6d2cc936c
--- /dev/null
+++ b/graphics/fritzing/Fritzing.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+#Script to start Fritzing in parts directory.
+
+cd /usr/share/fritzing/parts
+exec /usr/bin/fritzing
diff --git a/graphics/fritzing/fritzing.SlackBuild b/graphics/fritzing/fritzing.SlackBuild
index fed7d25e94..496ce634bd 100644
--- a/graphics/fritzing/fritzing.SlackBuild
+++ b/graphics/fritzing/fritzing.SlackBuild
@@ -1,7 +1,6 @@
#!/bin/sh
-
# Slackware build script for Fritzing
-# electronic prototyping
+# Electronic Prototyping Software
# Copyright 2010-2013 Niels Horn, Rio de Janeiro, RJ, Brazil
# All rights reserved.
@@ -26,16 +25,16 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Revision date 2013/03/26
+# Revision date 2019/06/04
PRGNAM=fritzing
-VERSION=${VERSION:-0.9.2b}
+VERSION=${VERSION:-0.9.3b}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -46,8 +45,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -67,6 +66,8 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-app-master
unzip $CWD/$PRGNAM-app-master.zip
+unzip $CWD/$PRGNAM-parts-master.zip
+
cd $PRGNAM-app-master
chown -R root:root .
find -L . \
@@ -74,23 +75,33 @@ find -L . \
-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-qt5
make
# "install" program
mkdir -p $PKG/usr/bin
-cp Fritzing $PKG/usr/bin/
+cp Fritzing $PKG/usr/bin/fritzing
+cp $CWD/Fritzing.sh $PKG/usr/bin/Fritzing
+chmod +x $PKG/usr/bin/Fritzing
+
# "install" data
-mkdir -p $PKG/usr/share/$PRGNAM
-cp -a parts sketches translations help $PKG/usr/share/$PRGNAM/
-mv $PKG/usr/share/$PRGNAM/parts/bins $PKG/usr/share/$PRGNAM/
+mkdir -p $PKG/usr/share/$PRGNAM/parts
+cp -a sketches translations help $PKG/usr/share/$PRGNAM/
+cp -a ../$PRGNAM-parts-master/bins $PKG/usr/share/$PRGNAM/parts
+cp -a ../$PRGNAM-parts-master/contrib $PKG/usr/share/$PRGNAM/parts
+cp -a ../$PRGNAM-parts-master/core $PKG/usr/share/$PRGNAM/parts
+cp -a ../$PRGNAM-parts-master/obsolete $PKG/usr/share/$PRGNAM/parts
+cp -a ../$PRGNAM-parts-master/scripts $PKG/usr/share/$PRGNAM/parts
+cp -a ../$PRGNAM-parts-master/svg $PKG/usr/share/$PRGNAM/parts
+cp -a ../$PRGNAM-parts-master/user $PKG/usr/share/$PRGNAM/parts
+cp -a ../$PRGNAM-parts-master/*.md $PKG/usr/share/$PRGNAM/parts
+cp -a ../$PRGNAM-parts-master/*.txt $PKG/usr/share/$PRGNAM/parts
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
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2 > /dev/null || true
mkdir -p $PKG/usr/share/{applications,pixmaps}
-cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+cat $CWD/fritzing.desktop > $PKG/usr/share/applications/fritzing.desktop
cat resources/images/${PRGNAM}_icon.png > $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/
diff --git a/graphics/fritzing/fritzing.desktop b/graphics/fritzing/fritzing.desktop
index 890a69229e..05e5ea12cc 100644
--- a/graphics/fritzing/fritzing.desktop
+++ b/graphics/fritzing/fritzing.desktop
@@ -1,11 +1,11 @@
[Desktop Entry]
-Version=1.0
Type=Application
Name=Fritzing
-Comment=Electronics Prototyper
-Categories=Graphics;
-Exec=Fritzing --folder /usr/share/fritzing
+GenericName=Fritzing
+Comment=Electronic Prototyping software
+Exec=Fritzing
Icon=fritzing
Terminal=false
-StartupNotify=false
-
+Categories=Graphics;
+StartupNotify=true
+MimeType=application/x-fritzing-fz;application/x-fritzing-fzz;application/x-fritzing-fzp;application/x-fritzing-fzpz;application/x-fritzing-fzb;application/x-fritzing-fzbz;application/x-fritzing-fzm;
diff --git a/graphics/fritzing/fritzing.info b/graphics/fritzing/fritzing.info
index 65ffe6189d..f8b67e21f5 100644
--- a/graphics/fritzing/fritzing.info
+++ b/graphics/fritzing/fritzing.info
@@ -1,10 +1,12 @@
PRGNAM="fritzing"
-VERSION="0.9.2b"
+VERSION="0.9.3b"
HOMEPAGE="http://fritzing.org/"
-DOWNLOAD="https://www.dropbox.com/s/lxu8ayjbtdd7st6/fritzing-app-master.zip"
-MD5SUM="c15a16a818a94b7ce5cdf9ccd0bd0611"
+DOWNLOAD="https://www.dropbox.com/s/qi13g7wsdj7ar9k/fritzing-app-master.zip \
+ https://www.dropbox.com/s/pbqiw0aew9g60fc/fritzing-parts-master.zip"
+MD5SUM="8e23c958538f6786c328f58f960459b0 \
+ 7c5a183d45e1deb18616b197110415a3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="qt5"
+REQUIRES="libgit2 qt5"
MAINTAINER="R. S. Ananda Murthy"
EMAIL="rsamurti@gmail.com"