# SliTaz package receipt. PACKAGE="gtk-screenshot" VERSION="0.2.0" CATEGORY="x-window" TAGS="gtk2 screenshot" SHORT_DESC="A simple GTK+ tool to take screen capture in interactive mode or in shell." MAINTAINER="al.bobylev@gmail.com" LICENSE="GPL2" WEB_SITE="https://sourceforge.net/projects/gtk-screenshot/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="gtk+" BUILD_DEPENDS="autoconf automake gtk+-dev libxml2-dev xorg-libXext-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/gtk-screenshot/files/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/gtk-screenshot-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { cp $stuff/ru.po $src/po autoreconf sed -i 's|ALL_LINGUAS="fr"|ALL_LINGUAS="fr ru"|' \ $src/configure ./configure $CONFIGURE_ARGS && make && make install sed -i 's|int|in|' $install/usr/bin/screenshot # typo } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs rm -rf $fs/usr/share/man }