SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "xvkbd"

# SliTaz package receipt.

PACKAGE="xvkbd"
VERSION="3.2"
CATEGORY="x-window"
SHORT_DESC="Virtual (graphical) keyboard program for X Window System."
MAINTAINER="paul@slitaz.org"
DEPENDS="xorg-libXt xorg-libX11  xorg-xproto xorg-libSM xorg-libXaw \
xorg-libICE xorg-libXp xorg-libXtst  xorg-libXmu xorg-libXpm xorg-libXext \
xorg-libXau xorg-libXdmcp"
BUILD_DEPENDS="xorg-imake xorg-cf-files xorg-libXt-dev xorg-libX11-dev \
xorg-xproto xorg-libSM-dev xorg-libXaw-dev xorg-libICE-dev xorg-libXp-dev \
xorg-libXtst-dev xorg-xextproto xorg-inputproto xorg-libXmu-dev"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://homepage3.nifty.com/tsato/xvkbd/"
WGET_URL="${WEB_SITE}$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
    cd $src

    # remove Xaw3d
    sed -i '/#define XAW3D/d' Imakefile
    xmkmf &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr $fs/etc
    cp -a $_pkg/usr/bin $fs/usr
    cp -a $_pkg/usr/lib $fs/usr
    cp -a $_pkg/etc/X11 $fs/etc
    # Add .desktop file
    cp -a $stuff/* $fs
}

post_install()
{ 
    # .Xdefaults file
    lang=$(echo $LANG | awk '{FS="_"} {print $1}')
    find /home -maxdepth 2 -name ".Xdefaults" > /tmp/listeXdefaults
    while read line
    do
    if ! grep -q "Xvkbd settings" $line; then
    cat >> $line << EOT

! Xvkbd settings
!
xvkbd*Font: -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
EOT
echo "xvkbd.Layout : $lang" >> $line    
    fi
    done </tmp/listeXdefaults
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)