LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-13-2014, 06:21 AM   #1
s09
Member
 
Registered: Jan 2014
Distribution: Slackware 14.1 (MLED 32-bit)
Posts: 84

Rep: Reputation: Disabled
Help building fbxkb under Slackware 14.1


I need the fbxkb keyboard indicator applet, but as it is not available as a slackBuild, I tried to roll my own package using src2pkg that seems to fail compiling under Slackware 14.1. While I have stumbled upon a SLKBUILD that presumably builds under Salix (a Slackware spin-off), I have no experience "translating" this into a proper slackBuild, so I'd like to ask if somebody could jump-in to help out with this.
 
Old 02-13-2014, 11:03 PM   #2
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 272
Blog Entries: 2

Rep: Reputation: 85
For Xfce, http://slackbuilds.org/repository/14...e4-xkb-plugin/
 
1 members found this post helpful.
Old 02-14-2014, 12:45 AM   #3
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Use the SlackBuild that aaditya pointed you to. As a side note you could install slkbuild to use SLKBUILD scripts directly (i.e. without converting them to SlackBuilds first).
 
1 members found this post helpful.
Old 02-14-2014, 02:39 AM   #4
s09
Member
 
Registered: Jan 2014
Distribution: Slackware 14.1 (MLED 32-bit)
Posts: 84

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by aaditya View Post
Thank you for the suggestion, but I'd like to avoid using the xfce-xkb-plugin as I haven't been able to make it honor both its own settings and some additional ones as, for example, disabling CAPS LOCK, and defining a level 3 switch (previously set via 90-keyboard-layout.conf). Therefore I have now settled with a setup where all the needed keyboard settings are passed via setxkbmap and a minimal indicator jujst to display the active keyboard layout. The indicator I'm using now is xxkb, but as it crashes at random intervals I decided to give fbxkb a try. Yes, I know about qxkb, but I try to stay GTK-only whenever possible
 
Old 02-14-2014, 02:40 AM   #5
s09
Member
 
Registered: Jan 2014
Distribution: Slackware 14.1 (MLED 32-bit)
Posts: 84

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ruario View Post
... As a side note you could install slkbuild to use SLKBUILD scripts directly (i.e. without converting them to SlackBuilds first).
Thanks for the hint! I'll take a look at that possibility.
 
Old 02-14-2014, 02:46 AM   #6
mancha
Member
 
Registered: Aug 2012
Posts: 484

Rep: Reputation: Disabled
Hi. I saw your post and gave building it a shot. Here's a simple build script for version 0.6. Feel free to modify it to suit your needs.

Enjoy.

--mancha

Code:
#!/bin/sh

# Copyright (c) 2014 mancha

PRGNAME=fbxkb
VERSION=0.6
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_mancha}

CWD=$(pwd)
TMP=${TMP:-/tmp/mancha}
OUTPUT=${OUTPUT:-/tmp}
PKG=$TMP/package-$PRGNAME

set -e

rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf $PRGNAME-$VERSION
tar xvf $CWD/$PRGNAME-$VERSION.tgz
cd $PRGNAME-$VERSION
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 {} \;

# Fast-forward some 2006 code
sed -i -e 's|install -d $(PREFIX)/bin|install -d $(DESTDIR)$(PREFIX)/bin|' -e 's|install -m 755 $(TARGET) $(PREFIX)/bin|install -m 755 $(TARGET) $(DESTDIR)$(PREFIX)/bin|' Makefile || exit 1
sed -i -e 's|-lXmu|-lXmu -lX11|' Makefile.common || exit 1
sed -i -e 's|gdk_display|gdk_x11_get_default_xdisplay()|' eggtrayicon.c || exit 1
sed -i -e 's|GDK_DISPLAY|gdk_x11_get_default_xdisplay|' fbxkb.c || exit 1
sed -i -e 's/if (!strcmp(tok, "pc") || !strcmp(tok, "group"))/if (!strcmp(tok, "pc") || !strcmp(tok, "group") || !strcmp(tok,"inet") || !strcmp(tok, "terminate"))/' fbxkb.c  || exit 1

./configure \
  --prefix=/usr
make
make install DESTDIR=$PKG

# Flags
mkdir -p $PKG/usr/share/fbxkb/images
cp -a images/*.png $PKG/usr/share/fbxkb/images/

# manpage is FUBAR
#mkdir -p $PKG/usr/man/man1
#cp -a man/fbxkb.1.gz $PKG/usr/man/man1

mkdir -p $PKG/usr/doc/$PRGNAME-$VERSION
cp -a CHANGELOG COPYING INSTALL $PKG/usr/doc/$PRGNAME-$VERSION

mkdir -p $PKG/install
cat << EOF > $PKG/install/slack-desc
fbxkb: fbxkb
fbxkb:
fbxkb: X11 keyboard indicator and switcher
fbxkb:
fbxkb: http://fbxkb.sourceforge.net/
fbxkb:
fbxkb:
fbxkb:
fbxkb:
fbxkb:
fbxkb:
EOF

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAME-$VERSION-$ARCH-$BUILD$TAG.txz
 
Old 02-14-2014, 02:57 AM   #7
s09
Member
 
Registered: Jan 2014
Distribution: Slackware 14.1 (MLED 32-bit)
Posts: 84

Original Poster
Rep: Reputation: Disabled
Talking

Thanks a lot, mancha! I just tried to use the SLKBUILD as ruario suggested, but the source didn't compile due to an error. I was about to post it here to get some guidance, but your slackBuild worked without a problem!
 
Old 02-14-2014, 09:10 AM   #8
bobzilla
Member
 
Registered: Nov 2005
Location: Serbia
Distribution: Slackware
Posts: 231

Rep: Reputation: Disabled
Quote:
Originally Posted by s09 View Post
Thank you for the suggestion, but I'd like to avoid using the xfce-xkb-plugin as I haven't been able to make it honor both its own settings and some additional ones as, for example, disabling CAPS LOCK, and defining a level 3 switch (previously set via 90-keyboard-layout.conf).
The development branch of Xfce4 Setttings Manager (4.11) has more detailed xkb options in the "Keyboard" applet. I haven't tested it myself, but saw on a friend's screenshot. It looks like it might finally remove the need for external tools (and xkb plugin).
 
Old 02-17-2014, 03:06 AM   #9
s09
Member
 
Registered: Jan 2014
Distribution: Slackware 14.1 (MLED 32-bit)
Posts: 84

Original Poster
Rep: Reputation: Disabled
Quote:
The development branch of Xfce4 Settings Manager (4.11) has more detailed xkb options in the "Keyboard" applet. I haven't tested it myself, but saw on a friend's screenshot. It looks like it might finally remove the need for external tools (and xkb plugin).
This would be great!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard layout indication - fbxkb babypeng Linux - Newbie 0 11-08-2012 12:58 PM
fbxkb-0.4-i486.pet question Artie Puppy 4 08-06-2009 03:38 AM
building gcc slackware jakiel Linux - Newbie 5 01-30-2007 07:19 PM
Building a Slackware PC Odin_of_Asgard Linux - Hardware 1 03-13-2004 11:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration