graphics/fritzing: Updated for version 0.9.3b.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
R. S. Ananda Murthy 2019-06-09 04:41:47 +07:00 committed by Willy Sudiarto Raharjo
parent 6b264be06d
commit 20bf6a2a08
No known key found for this signature in database
GPG key ID: 887B8374D7333381
4 changed files with 42 additions and 24 deletions

View file

@ -0,0 +1,5 @@
#!/bin/bash
#Script to start Fritzing in parts directory.
cd /usr/share/fritzing/parts
exec /usr/bin/fritzing

View file

@ -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/

View file

@ -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;

View file

@ -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"