SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "rtmpdump"

# SliTaz package receipt.

PACKAGE="rtmpdump"
VERSION="2.4"
CATEGORY="multimedia"
SHORT_DESC="A toolkit for RTMP streams."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://rtmpdump.mplayerhq.hu/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://rtmpdump.mplayerhq.hu/download/$TARBALL"

DEPENDS="libssl"
BUILD_DEPENDS="openssl-dev"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/latest rel/!d;s|.* is ||;s| .*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    # patch makefiles for shared library install
    patch -p1 < $stuff/librtmp-makefile.patch
    # Patch for openssl 
    # see https://github.com/JudgeZarbi/RTMPDump-OpenSSL-1.1/issues/2
    patch -p1 < $stuff/librtmp-openssl-1.1.x-build-fixes.diff

    mkdir -p $DESTDIR/usr/lib
    make &&
    make install            \
        prefix="/usr"        \
        libdir="/usr/lib"    \
        sbindir="/usr/bin"    \
        mandir="/usr/share/man"    \
        DESTDIR="$DESTDIR"
}

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

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