SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "msgpack"

# SliTaz package receipt.

PACKAGE="msgpack"
VERSION="3.2.1"
CATEGORY="network"
SHORT_DESC="MessagePack implementation for C and C++."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://tmate.io/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/$PACKAGE/$PACKAGE-c/archive/cpp-$VERSION.tar.gz"

BUILD_DEPENDS="cmake zlib"

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

# Rules to configure and make the package.
compile_rules()
{
    cmake -DCMAKE_INSTALL_PREFIX=/usr . &&
    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
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)