SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "miro"

# SliTaz package receipt.

PACKAGE="miro"
VERSION="6.0"
CATEGORY="multimedia"
SHORT_DESC="The free and open source internet TV platform."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.getmiro.com"
WGET_URL="https://github.com/pculture/miro/archive/refs/tags/v$VERSION.tar.gz"

DEPENDS="dbus-python python-pyrex pygtk gstreamer python-pysqlite pywebkitgtk \
shared-mime-info desktop-file-utils hicolor-icon-theme gst-python notify-python \
libtorrent-rasterbar gst-plugins-base gst-plugins-good gst-ffmpeg \
pycurl taglib python-gconf"
BUILD_DEPENDS="$DEPENDS python-dev dbus-python-dev pygtk-dev gstreamer-dev \
shared-mime-info-dev gst-python-dev libtorrent-rasterbar-dev libsoup-dev \
libwebkit-dev gst-plugins-base-dev gst-plugins-good-dev ffmpeg-dev \
imagemagick-dev taglib-dev libboost-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/pculture/miro/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src/linux
    sed 's|= CODEC|= AV_CODEC|g;s|....o_st->pts.val|0|' -i miro-segmenter.c
    python setup.py install --root=$DESTDIR
    sed -i "s|./miro.real|/usr/bin/miro.real|g" $DESTDIR/usr/bin/miro
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share

    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/lib $fs/usr
    cp -a $install/usr/share/icons $fs/usr/share
    cp -a $install/usr/share/miro $fs/usr/share
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)