Receipt for package "kbd"
# SliTaz package receipt. PACKAGE="kbd" VERSION="2.4.0" CATEGORY="system-tools" TAGS="keyboard" SHORT_DESC="Keyboard mapping definitions and tools." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" WEB_SITE="https://kbd-project.org/" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="https://www.kernel.org/pub/linux/utils/kbd/$TARBALL" SUGGESTED="kbd-lang" DEPENDS="gcc-lib-base kbd-base" BUILD_DEPENDS="advancecomp automake check-dev flex gcc pam-dev" HOST_ARCH="i486 arm x86_64" # Handle cross compilation. case "$ARCH" in arm) BUILD_DEPENDS="check-dev flex" ;; esac # @maintainer: Please update also: kbd-base, kbd-busybox, kbd-lang and kbd-vlock current_version() { wget -O - https://github.com/legionus/kbd/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { # standard locale placement # 2.4.0 no longer required # sed -i 's|localedir = .*|localedir = @localedir@|' \ # po/Makefile.in.in # Handle cross compilation. case "$ARCH" in (arm) # No PAM support for ARM ./configure \ --datadir=/usr/share/kbd \ --localedir=/usr/share/locale \ --disable-vlock \ $CONFIGURE_ARGS ;; (i486|x86_64) ./configure \ CC=gcc \ CXX=g++ \ --datadir=/usr/share/kbd \ --localedir=/usr/share/locale \ $CONFIGURE_ARGS ;; esac && make && make install && find $DESTDIR/usr/share/kbd -name '*gz' -exec advdef -z4 {} \; } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share # Copy all kbd files (should we split fonts?) cp -a $install/usr/share/kbd $fs/usr/share # Tools cp -a $install/usr/bin $fs/usr # Remove files provided by kbd-base and kbd-vlock. for keymap in $(cat $WOK/kbd-base/stuff/keymaps-path.list) do rm -f $fs/usr/share/kbd/keymaps/i386/$keymap done rm -rf $fs/usr/share/kbd/keymaps/include rm -rf $fs/usr/share/kbd/keymaps/i386/include rm -f $fs/usr/bin/loadkeys rm -f $fs/usr/bin/setfont rm -f $fs/usr/bin/vlock } # Overlap busybox pre_install() { rm -f $root/usr/bin/deallocvt rm -f $root/usr/bin/chvt rm -f $root/usr/bin/setkeycodes rm -f $root/usr/bin/openvt rm -f $root/usr/bin/kbd_mode } post_remove() { ln -s /bin/busybox $root/usr/bin/deallocvt ln -s /bin/busybox $root/usr/bin/chvt ln -s /bin/busybox $root/usr/bin/setkeycodes ln -s /bin/busybox $root/usr/bin/openvt ln -s /bin/busybox $root/usr/bin/kbd_mode }
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)