# SliTaz package receipt. PACKAGE="svkbd" VERSION="0.4.1" CATEGORY="x-window" SHORT_DESC="Simple virtual keyboard that suck less (english layout)." MAINTAINER="pankso@slitaz.org" LICENSE="BSD" WEB_SITE="https://tools.suckless.org/x/svkbd/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://dl.suckless.org/tools/$TARBALL" DEPENDS="xorg-libX11 xorg-libXtst" BUILD_DEPENDS="fontconfig-dev libxml2-dev xorg-libX11-dev xorg-libXtst-dev" HOST_ARCH="i486 arm" # What is the latest version available today? current_version() { wget -O - $WEB_SITE 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { cp -d ${stuff}/*.h . for layout in de en fr ru do make LAYOUT=$layout \ CC=$HOST_SYSTEM-gcc || return 1 make install \ LAYOUT=$layout \ DESTDIR=${DESTDIR} \ PREFIX="/usr" done # We may need to sed config.def.h to set correct font for RU ??? #make svkbd-ru CC=${HOST_SYSTEM}-gcc } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin cp -a $install/usr/bin/$PACKAGE-en $fs/usr/bin }