wok annotate libgit2/receipt @ rev 20985

Add libgit2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 06 19:24:05 2019 +0100 (2019-03-06)
parents
children 2b6b3912d775
rev   line source
pascal@20985 1 # SliTaz package receipt.
pascal@20985 2
pascal@20985 3 PACKAGE="libgit2"
pascal@20985 4 VERSION="0.28.1"
pascal@20985 5 CATEGORY="development"
pascal@20985 6 SHORT_DESC="A library implementation of Git"
pascal@20985 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@20985 8 LICENSE="GPL2"
pascal@20985 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20985 10 WEB_SITE="https://libgit2.org/"
pascal@20985 11 WGET_URL="https://github.com/libgit2/libgit2/archive/v$VERSION.tar.gz"
pascal@20985 12
pascal@20985 13 BUILD_DEPENDS="cmake python"
pascal@20985 14
pascal@20985 15 # Rules to configure and make the package.
pascal@20985 16 compile_rules()
pascal@20985 17 {
pascal@20985 18 mkdir build && cd build
pascal@20985 19 cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
pascal@20985 20 cmake --build . --target install
pascal@20985 21 }
pascal@20985 22
pascal@20985 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20985 24 genpkg_rules()
pascal@20985 25 {
pascal@20985 26 mkdir -p $fs/usr/lib
pascal@20985 27 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@20985 28 }