#SliTaz package receipt. PACKAGE="numlockx" VERSION="1.2" CATEGORY="x-window" SHORT_DESC="Turns on the numlock key in X11" MAINTAINER="mojo@slitaz.org" LICENSE="MIT" WEB_SITE="http://freecode.com/projects/numlockx" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="http://pkgs.fedoraproject.org/repo/pkgs/$PACKAGE/$TARBALL/be9109370447eae23f6f3f8527bb1a67/$TARBALL" DEPENDS="xorg-libXtst" BUILD_DEPENDS="" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*}/ 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() { ./configure $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs }