# SliTaz package receipt. PACKAGE="imagination" VERSION="1.0" CATEGORY="graphics" SHORT_DESC="lightweight and simple GTK+ DVD slideshow maker" MAINTAINER="jozee@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://imagination.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" TAGS="slideshow photo" DEPENDS="gtk+ ffmpeg" BUILD_DEPENDS="intltool ffmpeg gtk+-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/imagination/files/ 2>/dev/null | \ sed '/scope="row/!d;/tar/!d;s|.*/imagination-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { cd $src export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lgmodule-2.0" ./configure --prefix=/usr $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib/$PACKAGE $fs/usr/share/pixmaps cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib/$PACKAGE/*.so $fs/usr/lib/$PACKAGE cp -a $install/usr/share/$PACKAGE $fs/usr/share cp -a $install/usr/share/icons/hicolor/16x16/apps/* $fs/usr/share/pixmaps }