# SliTaz package receipt. PACKAGE="leafpad" VERSION="0.8.18.1" CATEGORY="utilities" SHORT_DESC="GTK simple text editor." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://tarot.freeshell.org/leafpad/" WGET_URL="http://savannah.nongnu.org/download/$PACKAGE/$TARBALL" TAGS="text-editor" HOST_ARCH="i486 arm" GENERIC_PIXMAPS="no" DEPENDS="gtk+ xorg-libXdamage" BUILD_DEPENDS="gtk+-dev xorg-libXrender-dev xorg-xproto" current_version() { wget -O - $(dirname $WGET_URL) 2>/dev/null | \ sed '/href="'$PACKAGE'-[0-9]/!d;/tar/!d;s|.*>'$PACKAGE'-||;s|.tar.*||' | \ sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { chmod +x install-sh patch -p1 -i $stuff/icon.patch ./configure $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr }