wok view miro/receipt @ rev 14682

libelementary: Up to 1.7.7
author Dominique Corbex <domcox@slitaz.org>
date Thu Jun 06 22:09:08 2013 +0200 (2013-06-06)
parents 8975c8651ce7
children bb009a6ef036
line source
1 # SliTaz package receipt.
3 PACKAGE="miro"
4 VERSION="5.0.4"
5 CATEGORY="multimedia"
6 SHORT_DESC="The free and open source internet TV platform."
7 MAINTAINER="slaxemulator@gmail.com"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.getmiro.com"
10 WGET_URL="http://ftp.osuosl.org/pub/pculture.org/$PACKAGE/src/$TARBALL"
12 DEPENDS="dbus-python python-pyrex pygtk gstreamer python-pysqlite pywebkitgtk \
13 shared-mime-info desktop-file-utils hicolor-icon-theme gst-python notify-python \
14 libtorrent-rasterbar gst-plugins-base gst-plugins-good gst-ffmpeg \
15 pycurl taglib python-gconf"
16 BUILD_DEPENDS="$DEPENDS python-dev dbus-python-dev pygtk-dev gstreamer-dev \
17 shared-mime-info-dev gst-python-dev libtorrent-rasterbar-dev libsoup-dev \
18 libwebkit-dev gst-plugins-base-dev gst-plugins-good-dev ffmpeg-dev \
19 imagemagick-dev taglib-dev libboost-dev"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src/linux
25 sed -i -e 's/av_open_input_file\(.*\), NULL/avformat_open_input\1/' \
26 -e 's/av_set_parameters.*0/0/' \
27 -e 's/ dump_format/ av_dump_format/' \
28 -e 's/url_fopen\(.*\)URL_WRONLY/avio_open\1AVIO_FLAG_WRITE/' \
29 -e 's/av_write_header(oc)/avformat_write_header(oc, NULL)/' \
30 -e 's/put_flush_packet/avio_flush/' \
31 -e 's/url_fclose/avio_close/' \
32 miro-segmenter.c
33 python setup.py install --root=$DESTDIR
34 sed -i "s|./miro.real|/usr/bin/miro.real|g" $DESTDIR/usr/bin/miro
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share/pixmaps
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib $fs/usr
43 cp -a $install/usr/share/miro $fs/usr/share
44 cp -a $install/usr/share/mime $fs/usr/share
45 cp -a $install/usr/share/applications $fs/usr/share
46 cp -a $install/usr/share/icons/hicolor/48x48/apps/miro.png $fs/usr/share/pixmaps
47 }