SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "xvidcore"

# SliTaz package receipt.

PACKAGE="xvidcore"
VERSION="1.3.7"
CATEGORY="multimedia"
SHORT_DESC="XviD, a high performance and quality MPEG-4 video de- and encoding solution."
MAINTAINER="devl547@gmail.com"
LICENSE="GPL2"
WEB_SITE="https://www.xvid.com/"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="https://downloads.xvid.com/downloads/$TARBALL"

BUILD_DEPENDS="yasm"

HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed -e 's|br/>|\n|g;/xvidcore-/!d' | sed '/tar..z/!d;s|.*xvidcore-||;s|.tar.*||' | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src/build/generic
    ./configure            \
        --prefix=/usr        \
        --mandir=/usr/share/man    \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# 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
    cd    $fs/usr/lib
    _mylib=$(basename libxvidcore.so.*)
    ln -sf ${_mylib} libxvidcore.so.4
    ln -sf ${_mylib} libxvidcore.so
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)