SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gst-plugins-ugly"

# SliTaz package receipt.

PACKAGE="gst-plugins-ugly"
VERSION="0.10.19"
SERIES="${VERSION%.*}"    # first two numbers from version
CATEGORY="multimedia"
SHORT_DESC="GStreamer Ugly Plugins"
MAINTAINER="jozee@slitaz.org"
LICENSE="LGPL2.1"
SUGGESTED="x264"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="https://gstreamer.freedesktop.org/"
WGET_URL="$WEB_SITE/src/$PACKAGE/$TARBALL"
LOCALES="da de es fr id it pt_BR ru zh_CN"

DEPENDS="gst-plugins-base lame libdvdread
libcdio libmad libmpeg2 opencore-amr"
BUILD_DEPENDS="gstreamer-dev gst-plugins-base-dev lame-dev libdvdread-dev
libcdio-dev libmad-dev libmpeg2-dev x264-dev"

current_version()
{
    wget -O - https://gstreamer.freedesktop.org/src/$PACKAGE/ 2>/dev/null | \
    sed '/tar/!d;s|.*'$PACKAGE'-||;s|.tar.*||' | sed '$!d'
}

# Rules to configure and make the package.
compile_rules()
{
    patch -p0 < $stuff/libcdio.u
    ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --localstatedir=/var \
        --disable-static \
        --disable-debug \
        --with-package-name="GStreamer Ugly Plugins ($SERIES)" \
        --with-package-origin="http://www.slitaz.org/" \
        $CONFIGURE_ARGS &&
    make $MAKEFLAGS 2>&1 | grep -v /usr/local/include &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib/gstreamer-$SERIES $fs/usr/share/locale
    mv $install/usr/lib/gstreamer-$SERIES/*.so* $fs/usr/lib/gstreamer-$SERIES
    mv $install/usr/share/gstreamer-$SERIES $fs/usr/share
    for locale in $LOCALES; do
        mv $install/usr/share/locale/$locale $fs/usr/share/locale
    done
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)