# SliTaz package receipt. PACKAGE="lockdis" VERSION="1.0" CATEGORY="x-window" SHORT_DESC="Simple screen locker." MAINTAINER="pankso@slitaz.org" LICENSE="GPL3" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://lockdis.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" HOST_ARCH="i486 arm" DEPENDS="xorg-libX11 xorg-libXau xorg-libXpm xorg-libXdmcp" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/lockdis/files/lockdis/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/lockdis-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr }