SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "x265"

# SliTaz package receipt.

PACKAGE="x265"
VERSION="3.5"
CATEGORY="multimedia"
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
SHORT_DESC="Free library for encoding H265/MPEG-H HEVC video streams."
WEB_SITE="https://www.videolan.org/developers/x265.html"

TARBALL="${PACKAGE}_$VERSION.tar.gz"
WGET_URL="https://bitbucket.org/multicoreware/${PACKAGE}_git/downloads/$TARBALL"

DEPENDS="glibc-base"
BUILD_DEPENDS="cmake nasm"

#HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    sed "/latest/d;/${PACKAGE}_[0-9]/!d;/tar/!d;s|.*${PACKAGE}_\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src/build
    cmake    ../source            \
        -D CMAKE_INSTALL_PREFIX=/usr &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    cook_copy_files        *.so*
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)