wok-current annotate electricsheep/receipt @ rev 25680

Add neofetch, remove *.la for conky deps
author Stanislas Leduc <shann@slitaz.org>
date Sun Mar 10 13:41:01 2024 +0000 (8 months ago)
parents b01314c762e9
children
rev   line source
gokhlayeh@6998 1 # SliTaz package receipt.
gokhlayeh@6998 2
gokhlayeh@6998 3 PACKAGE="electricsheep"
gokhlayeh@6998 4 VERSION="2.7b12"
gokhlayeh@6998 5 CATEGORY="graphics"
samuel_trassare@12004 6 SHORT_DESC="Distributed screen-saver that renders morphing abstract animations"
gokhlayeh@7034 7 MAINTAINER="gokhlayeh@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
gokhlayeh@6998 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
gokhlayeh@6998 10 WEB_SITE="http://community.electricsheep.org/"
pascal@25028 11 WGET_URL="https://sources.archlinux.org/other/community/$PACKAGE/$TARBALL"
gokhlayeh@6998 12
pascal@15002 13 DEPENDS="curl expat flam3 ffmpeg mplayer libglade gtk+"
pascal@20590 14 BUILD_DEPENDS="curl-dev expat-dev ffmpeg-dev libglade-dev gtk+-dev flam3-dev \
pascal@20590 15 libgnutls"
pascal@15002 16
pascal@24759 17 # What is the latest version available today?
pascal@24759 18 current_version()
pascal@24759 19 {
pascal@24759 20 wget -O - https://github.com/scottdraves/electricsheep/commits/master 2>/dev/null | \
pascal@24759 21 sed '/version to [0-9]/!d;s|.* to ||;s|<.*||;q'
pascal@24759 22 }
pascal@24759 23
gokhlayeh@6998 24 # Rules to configure and make the package.
gokhlayeh@6998 25 compile_rules()
gokhlayeh@6998 26 {
pascal@14358 27 sed -i -e 's/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/' \
pascal@14358 28 -e 's/guess_format/av_guess_format/' \
pascal@14358 29 -e 's/PKT_FLAG_KEY/AV_PKT_FLAG_KEY/' \
pascal@14358 30 -e '/stream_copy/d' -e '/av_set_parameters/d' \
pascal@14358 31 -e 's/url_fopen\(.*\)URL_WRONLY/avio_open\1AVIO_FLAG_WRITE/' \
pascal@14358 32 -e 's/av_open_input_file\(.*\), NULL/avformat_open_input\1/' \
pascal@14359 33 -e 's/av\(_write_header(output_ctx\)/avformat\1, NULL/' \
pascal@14358 34 -e 's/av_alloc_format_context/avformat_alloc_context/' \
pascal@14359 35 -e '/GNOME_SCREENSAVER/d' \
pascal@19144 36 -e 's/av_new_stream(output_ctx, /avformat_new_stream(output_ctx, NULL); st->id = (/' \
pascal@19144 37 -e 's/av_close_input_file(/avformat_close_input(\&/' \
pascal@19144 38 -e 's/av_find_stream_info(ictx/avformat_find_stream_info(ictx,NULL/' \
pascal@22474 39 -e 's/.*av_destruct_packet//' \
pascal@14358 40 electricsheep.c
pascal@14359 41 mkdir -p $DESTDIR/usr/share/gconf/defaults
pascal@14359 42 sed -i -e '/update-gconf-defaults/d' \
pascal@14359 43 -e 's|/usr/share/gconf/defaults|$(DESTDIR)&|' \
pascal@14360 44 -e '/GNOME_SCREENSAVER/d' \
pascal@14359 45 Makefile*
gokhlayeh@6998 46 ./configure \
gokhlayeh@6998 47 --prefix=/usr \
gokhlayeh@6998 48 --infodir=/usr/share/info \
gokhlayeh@6998 49 --mandir=/usr/share/man \
gokhlayeh@6998 50 $CONFIGURE_ARGS &&
pascal@14358 51 make $MAKEFLAGS && make DESTDIR=$DESTDIR install
gokhlayeh@6998 52 }
gokhlayeh@6998 53
gokhlayeh@6998 54 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@6998 55 genpkg_rules()
gokhlayeh@6998 56 {
pascal@14358 57 cp -a $install/* $fs/
gokhlayeh@6998 58 rm -r $fs/usr/share/man
gokhlayeh@6998 59 rm $fs/usr/share/electricsheep/electricsheep-wait.avi
gokhlayeh@6998 60 }