LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware- Help installing bluegriffon (http://www.linuxquestions.org/questions/slackware-14/slackware-help-installing-bluegriffon-4175457175/)

PeterUK 04-06-2013 09:57 PM

Slackware- Help installing bluegriffon
 
I would like to install bluegriffon on Slackware

Here is the website:

http://bluegriffon.org/pages/Download

But they don't give option for Slackware what should I do?

elvis4526 04-06-2013 10:37 PM

I would suggest trying src2pkg on the source tarball. :)

frankbell 04-06-2013 10:41 PM

This thread from Google-groups might help:

https://groups.google.com/forum/?fro...on/o2PmABfO4KQ

PeterUK 04-06-2013 11:21 PM

Quote:

Originally Posted by elvis4526 (Post 4926605)
I would suggest trying src2pkg on the source tarball. :)

Hi when I try src2pkg it said

Code:

src2pkg: command not found

zrdc28 04-06-2013 11:30 PM

download and install src2pkg first

PeterUK 04-06-2013 11:38 PM

Quote:

Originally Posted by zrdc28 (Post 4926630)
download and install src2pkg first

OK I will, at the moment I have saved under /opt (from the Ubuntu version) and make a like to executable it open I still dont know if it work properly.

I will install src2pkg

PeterUK 04-06-2013 11:43 PM

Quote:

Originally Posted by zrdc28 (Post 4926630)
download and install src2pkg first

Where is the src2pkg is not in the slackbuilds?

tronayne 04-07-2013 07:03 AM

Go to http://distro.ibiblio.org/amigolinux/download/src2pkg/. Download the file src2pkg-2.8-noarch-1.txz (it's a Slackware package); execute
Code:

su -        (you must be root to do this)
installpkg src2pkg-2.8-noarch-1.txz

Watch the screen and respond to the prompt -- src2pgk builds and installs itself.

Might want to read through the manual page (man src2pkg) when it finishes.

Hope this helps some.

fskmh 04-07-2013 12:20 PM

1 Attachment(s)
Code:

#!/bin/sh

# Notice: This script is based on the mozilla-firefox repackaging script from
# Slackware 13.1 - Mathew Holleran, 07-04-2012.
#
# Copyright 2008, 2009, 2010, 2011  Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=bluegriffon
VERSION=$(basename $(ls ${PRGNAM}-*.tar.?z* | cut -d - -f 2))
EXTVER=$(basename $(ls ${PRGNAM}-*.tar.?z* | cut -d - -f 3))
SUFFIX=$(basename $(ls ${PRGNAM}-*.tar.?z* | cut -d - -f 4))
ARCH=$(echo $SUFFIX | cut -d . -f 1)
BUILD=${BUILD:-1}
CWD=`pwd`
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM

if [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

if [ ! -d $TMP ]; then
  mkdir -p $TMP
fi
rm -rf $PKG
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}
echo
echo "Repackaging $PRGNAM-$EXTVER-$VERSION for Slackware $ARCH"
echo
( cd $PKG/usr/lib${LIBDIRSUFFIX}
  tar xf $CWD/$PRGNAM-$VERSION-$EXTVER-$SUFFIX || exit 1
  mv ${PRGNAM} $PRGNAM-$VERSION
  ln -sf $PRGNAM-$VERSION $PRGNAM
  cd $PRGNAM-$VERSION
  cd $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION
) || exit 1
mkdir -p $PKG/usr/bin
( cd $PKG/usr/bin
  ln -sf /usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION/$PRGNAM .
)

# Fix moz_libdir path in wrapper script since we're not installing in /usr/local
sed -i "s/usr\/local\/lib/usr\/lib${LIBDIRSUFFIX}/" $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/$PRGNAM

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/usr/share/applications
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
cat << EOF > $PKG/usr/share/applications/$PRGNAM.desktop
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=BlueGriffon
Comment=WYSIWYG web-content editor
Exec=bluegriffon %u
Icon=bluegriffon
Type=Application
Categories=Applications;Development;
Name=bluegriffon
MimeType=text/html;
X-KDE-StartupNotify=true
EOF

mkdir -p $PKG/usr/share/pixmaps
cp $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/chrome/icons/default/default48.png $PKG/usr/share/pixmaps/$PRGNAM.png

mkdir $PKG/install
cat << EOF > $PKG/install/slack-desc
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|' on
# the right side marks the last column you can put a character in.  You must make
# exactly 11 lines for the formatting to be correct.  It's also customary to
# leave one space after the ':'.

          |-----handy-ruler------------------------------------------------------|
bluegriffon: BlueGriffon (Gecko-powered WYSIWYG web-content editor)
bluegriffon:
bluegriffon: BlueGriffon is a new WYSIWYG content editor for the World Wide Web.
bluegriffon: Powered by Gecko, the rendering engine of Firefox, it's a modern and
bluegriffon: robust solution to edit Web pages in conformance to the latest Web
bluegriffon: Standards. Because Gecko lives inside BlueGriffon, the document you
bluegriffon: edit will look exactly the same in Firefox. Advanced users can always
bluegriffon: use the Source View to hard-code their page.
bluegriffon: BlueGriffon is tri-licensed under the Mozilla Public License 1.1, the
bluegriffon: GNU GPL Version 2 and the GNU Lesser GPL Version 2.1.
bluegriffon: http://bluegriffon.org/
EOF
cd $PKG
# Sanitise permissions before rolling package:
chown -R root:root .
find . \
 \( -perm 777 -o -perm 775 -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 {} \;

makepkg -l y -c n $TMP/$PRGNAM-$VERSION-$ARCH-$BUILD.txz



All times are GMT -5. The time now is 10:23 AM.