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