diff options
author | R. S. Ananda Murthy <rsamurti@gmail.com> | 2019-06-09 04:41:47 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-06-09 05:32:01 +0700 |
commit | 20bf6a2a08804f7ff45de63916cc1235b50d881f (patch) | |
tree | d8ae9bf004a88c7bdfcdd330870de2b7ab5044de /graphics/fritzing/fritzing.SlackBuild | |
parent | 6b264be06d0940d0fe64a840d3ab1a1b12152ecf (diff) | |
download | slackbuilds-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/fritzing.SlackBuild')
-rw-r--r-- | graphics/fritzing/fritzing.SlackBuild | 39 |
1 files changed, 25 insertions, 14 deletions
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/ |