wok-6.x view electricsheep/receipt @ rev 23584

updated python-whoosh (2.5.7 -> 2.7.4)
author Hans-G?nter Theisgen
date Tue Apr 07 14:07:00 2020 +0100 (2020-04-07)
parents 22980cdd8a20
children b01314c762e9
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="http://147.52.159.12/mirrors/ftp.kernel.org/pub/dist/vectorlinux/VL64-7.0/sourceAbs/$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 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i -e 's/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/' \
21 -e 's/guess_format/av_guess_format/' \
22 -e 's/PKT_FLAG_KEY/AV_PKT_FLAG_KEY/' \
23 -e '/stream_copy/d' -e '/av_set_parameters/d' \
24 -e 's/url_fopen\(.*\)URL_WRONLY/avio_open\1AVIO_FLAG_WRITE/' \
25 -e 's/av_open_input_file\(.*\), NULL/avformat_open_input\1/' \
26 -e 's/av\(_write_header(output_ctx\)/avformat\1, NULL/' \
27 -e 's/av_alloc_format_context/avformat_alloc_context/' \
28 -e '/GNOME_SCREENSAVER/d' \
29 -e 's/av_new_stream(output_ctx, /avformat_new_stream(output_ctx, NULL); st->id = (/' \
30 -e 's/av_close_input_file(/avformat_close_input(\&/' \
31 -e 's/av_find_stream_info(ictx/avformat_find_stream_info(ictx,NULL/' \
32 -e 's/.*av_destruct_packet//' \
33 electricsheep.c
34 mkdir -p $DESTDIR/usr/share/gconf/defaults
35 sed -i -e '/update-gconf-defaults/d' \
36 -e 's|/usr/share/gconf/defaults|$(DESTDIR)&|' \
37 -e '/GNOME_SCREENSAVER/d' \
38 Makefile*
39 ./configure \
40 --prefix=/usr \
41 --infodir=/usr/share/info \
42 --mandir=/usr/share/man \
43 $CONFIGURE_ARGS &&
44 make $MAKEFLAGS && make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cp -a $install/* $fs/
51 rm -r $fs/usr/share/man
52 rm $fs/usr/share/electricsheep/electricsheep-wait.avi
53 }