SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libgit2"

# SliTaz package receipt.

PACKAGE="libgit2"
VERSION="0.28.1"
CATEGORY="development"
SHORT_DESC="A library implementation of Git"
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://libgit2.org/"
WGET_URL="https://github.com/libgit2/libgit2/archive/v$VERSION.tar.gz"

BUILD_DEPENDS="cmake python pkg-config openssl-dev"

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_INSTALL_PREFIX=/usr .. &&
    cmake --build . --target 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)