# SliTaz package receipt. PACKAGE="electricsheep" VERSION="2.7b12" CATEGORY="graphics" SHORT_DESC="Distributed screen-saver that renders morphing abstract animations" MAINTAINER="gokhlayeh@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://community.electricsheep.org/" WGET_URL="https://sources.archlinux.org/other/community/$PACKAGE/$TARBALL" DEPENDS="curl expat flam3 ffmpeg mplayer libglade gtk+" BUILD_DEPENDS="curl-dev expat-dev ffmpeg-dev libglade-dev gtk+-dev flam3-dev \ libgnutls" # What is the latest version available today? current_version() { wget -O - https://github.com/scottdraves/electricsheep/commits/master 2>/dev/null | \ sed '/version to [0-9]/!d;s|.* to ||;s|<.*||;q' } # Rules to configure and make the package. compile_rules() { sed -i -e 's/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/' \ -e 's/guess_format/av_guess_format/' \ -e 's/PKT_FLAG_KEY/AV_PKT_FLAG_KEY/' \ -e '/stream_copy/d' -e '/av_set_parameters/d' \ -e 's/url_fopen\(.*\)URL_WRONLY/avio_open\1AVIO_FLAG_WRITE/' \ -e 's/av_open_input_file\(.*\), NULL/avformat_open_input\1/' \ -e 's/av\(_write_header(output_ctx\)/avformat\1, NULL/' \ -e 's/av_alloc_format_context/avformat_alloc_context/' \ -e '/GNOME_SCREENSAVER/d' \ -e 's/av_new_stream(output_ctx, /avformat_new_stream(output_ctx, NULL); st->id = (/' \ -e 's/av_close_input_file(/avformat_close_input(\&/' \ -e 's/av_find_stream_info(ictx/avformat_find_stream_info(ictx,NULL/' \ -e 's/.*av_destruct_packet//' \ electricsheep.c mkdir -p $DESTDIR/usr/share/gconf/defaults sed -i -e '/update-gconf-defaults/d' \ -e 's|/usr/share/gconf/defaults|$(DESTDIR)&|' \ -e '/GNOME_SCREENSAVER/d' \ Makefile* ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && 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/share/man rm $fs/usr/share/electricsheep/electricsheep-wait.avi }