# SliTaz package receipt. PACKAGE="libgnomeprintui" VERSION="2.18.6" CATEGORY="x-window" SHORT_DESC="GNOME print user interface library" MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="https://www.gnome.org/" WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL" DEPENDS="gtk+ libgnomeprint libgnomecanvas libart_lgpl" BUILD_DEPENDS="pkg-config gnome-icon-theme flex libgnomeprint-dev \ libgnomecanvas-dev libart_lgpl-dev intltool" current_version() { wget -O - $(dirname $WGET_URL) 2>/dev/null | \ sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { ./configure \ --with-html-dir=/usr/share/doc \ $CONFIGURE_ARGS && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib $fs/usr/share cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/share/$PACKAGE $fs/usr/share }