# SliTaz package receipt. PACKAGE="gpick" VERSION="0.2.5" CATEGORY="graphics" SHORT_DESC="Advanced color picker written in C++ using GTK+ toolkit" MAINTAINER="al.bobylev@gmail.com" LICENSE="BSD" WEB_SITE="http://www.gpick.org/" TARBALL="${PACKAGE}_$VERSION.tar.gz" WGET_URL="https://github.com/thezbyg/gpick/archive/$PACKAGE-$VERSION.tar.gz" DEPENDS="gtk+" SUGGESTED="lua" BUILD_DEPENDS="scons gettext lemon flex gtk+-dev expat-dev libboost-dev \ dbus-glib-dev lua-dev" # What is the latest version available today? current_version() { wget -O - https://github.com/thezbyg/gpick/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { scons DESTDIR=$install BUILD_TARGET="linux2" install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share cp -a $install/bin $fs/usr cp -a $install/share/$PACKAGE $fs/usr/share cp -a $install/share/icons $fs/usr/share cp -a $install/share/locale $fs/usr/share cp -a $install/share/man $fs/usr/share }