# SliTaz package receipt. PACKAGE="dia" VERSION="0.97.3" CATEGORY="office" SHORT_DESC="GTK+ based diagram creation program." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.xz" WEB_SITE="http://projects.gnome.org/dia/" WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" TAGS="office diagram creator editor visio" DEPENDS="gtk+ libxml2 freetype fontconfig glib atk pango zlib libart_lgpl \ libxslt popt xorg-libXdamage librsvg" BUILD_DEPENDS="pkg-config gtk+-dev libxml2-dev freetype-dev intltool \ fontconfig-dev glib-dev atk-dev pango-dev python-pyxml zlib-dev libxslt \ libart_lgpl-dev libart_lgpl pygtk file libxslt-dev expat-dev python-dev \ docbook-xsl docbook-xml cairo-dev pango-dev librsvg-dev" 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() { #find . -name '*.[ch]*' | xargs sed -i 's||&\n#include |' plug-ins/vdx/vdx-export.c #patch -Np1 -i $stuff/dia-overflow-fix.patch ./configure --with-python \ --with-cairo \ --disable-gnome \ $CONFIGURE_ARGS && sed -i 's# data doc tests installer# data tests installer#' Makefile && make $MAKEFLAGS && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs rm -r $fs/usr/lib/dia/*.la $fs/usr/share/locale }