LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slack for Studio. Hexter: not gui, only engine (https://www.linuxquestions.org/questions/slackware-14/slack-for-studio-hexter-not-gui-only-engine-624554/)

ludist 02-28-2008 02:22 PM

Slack for Studio. Hexter: not gui, only engine
 
Hello, I am trying to add the 4 "s" in Slack (Simple, Stable, Secure, ... Studio) :)

I have mainly good experiences but I have this great plugin (hexter) that does not work with gui.

This is my SlackBuild

Code:

#!/bin/sh

# Exit on most errors
set -e

PRGNAM=hexter
VERSION=0.6.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}   
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}  # Drop the package in /tmp

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "Piii" ]; then
  SLKCFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
fi

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .

# Determine what version of X we're running (the modular X.Org of
# Slackware > 11.0 returns the value of the installation prefix in
# the next command, while older versions of X stay silent).
# You may need this when you use programs in your doinst.sh script
# from X's 'bin' directory (mkfontdir, xset for instance).
XPREF=`pkg-config --variable=prefix x11` || true
[ "$XPREF" == "" ] && XPREF='/usr/X11R6'

# Also determine the KDE installation prefix.
KDEPREF=`kde-config --prefix` || true

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --with-gtk-prefix=/usr/lib/gtk-2.0 \
  --with-gnu-ld

make
make install DESTDIR=$PKG

( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)

# Remove perllocal.pod and other special files that don't need to be installed,
( cd $PKG
  # Remove 'special' files
  find . -name perllocal.pod \
    -o -name ".packlist" \
    -o -name "*.bs" \
    | xargs rm -f
)

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cd $TMP/$PRGNAM-$VERSION/
cp -a AUTHORS COPYING ChangeLog INSTALL TODO README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

# Copy the slack-desc (and a custom doinst.sh if necessary) into ./install
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

# Make the package; be sure to leave it in $OUTPUT
# If package symlinks need to be created during install *before*
# your custom contents of doinst.sh runs, then add the -p switch to
# the makepkg command below -- see makepkg(8) for details
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz

Anyone that managed to work with hexter and Slackware?

Hexter is here

symatic 02-28-2008 02:43 PM

Frequently Asked Questions
==========================
Q. The plugin seems to work fine, but the GUI never appears. Why?

A. Make sure the hostname of your machine is resolvable (if not, the
OSC messages can't be sent between host and GUI). If your machine's
hostname is 'foo.bar.net', make sure you either have an entry for
'foo.bar.net' in /etc/hosts, or that your DNS server can resolve it.
Test this with e.g. 'ping foo.bar.net'. To test that the GUI itself
works, you can start it by itself (without a DSSI host) by giving it
the '-test' option, for example:

$ <prefix>/lib/dssi/hexter/hexter_gtk -test


hopefully this will help..

ludist 02-28-2008 03:08 PM

Shame on me, just saw it and went here to write: False alarm.

Thank you!


All times are GMT -5. The time now is 09:33 AM.