# SliTaz package receipt. PACKAGE="qiv" VERSION="2.3.2" CATEGORY="multimedia" SHORT_DESC="Quick Image Viewer." MAINTAINER="devl547@gmail.com" LICENSE="GPL2" WEB_SITE="https://spiegl.de/qiv/" TARBALL="$PACKAGE-$VERSION.tgz" WGET_URL="${WEB_SITE}download/$TARBALL" DEPENDS="gtk+ imlib2 lcms2 libexif" BUILD_DEPENDS="gtk+-dev imlib2-dev lcms2-dev libexif-dev" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/x.y.z/d;/pre/d;/$PACKAGE-/!d;/tgz/!d;s|.*$PACKAGE-\\(.*\\).tgz.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { sed -i 's/MAGIC = -DHAVE_MAGIC/# MAGIC = -DHAVE_MAGIC/' Makefile make } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin cp -a $src/qiv $fs/usr/bin }