# SliTaz package receipt. PACKAGE="xautolock" VERSION="2.2" CATEGORY="x-window" SHORT_DESC="Program launcher for idle X sessions." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tgz" WEB_SITE="https://www.ibiblio.org/pub/linux/X11/" WGET_URL="${WEB_SITE}screensavers/$TARBALL" DEPENDS="xorg-libXss libxcb xlockmore" BUILD_DEPENDS="xorg-imake xorg-libXScrnSaver-dev" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tgz/!d;s|.*$PACKAGE-\\(.*\\).tgz.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { xmkmf && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr $install/usr/share/man $install/usr/share/doc cp -a $src/Readme $install/usr/share/doc cp -a $src/xautolock.man $install/usr/share/man chmod a+r $install/usr/share/*/* cp -a $install/usr/bin $fs/usr }