SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "brotli"

# SliTaz package receipt.

PACKAGE="brotli"
VERSION="1.0.9"
CATEGORY="base-system"
SHORT_DESC="A generic-purpose lossless compression algorithm."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="MIT"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://github.com/google/brotli"
WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
TAGS="compression"

DEPENDS="gcc-lib-base"
BUILD_DEPENDS="python-dev python-setuptools cmake"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    mkdir build && cd build
    cmake \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr \
    .. &&
    make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin $fs/usr/lib
    cp -a $install/usr/bin/brotli $fs/usr/bin/
    ln -s brotli $fs/usr/bin/bro
    cp -a $install/usr/lib/*.so* $fs/usr/lib
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)