wok-6.x annotate libgit2/receipt @ rev 24868
updated lxc and lxc-dev (3.2.1 -> 4.0.12)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 30 17:49:17 2022 +0100 (2022-03-30) |
parents | 2b6b3912d775 |
children |
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@20986 | 13 BUILD_DEPENDS="cmake python pkg-config openssl-dev" |
pascal@20985 | 14 |
pascal@24055 | 15 current_version() |
pascal@24055 | 16 { |
pascal@24055 | 17 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 18 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 19 } |
pascal@24055 | 20 |
pascal@20985 | 21 # Rules to configure and make the package. |
pascal@20985 | 22 compile_rules() |
pascal@20985 | 23 { |
pascal@20985 | 24 mkdir build && cd build |
pascal@20985 | 25 cmake -DCMAKE_INSTALL_PREFIX=/usr .. && |
pascal@20985 | 26 cmake --build . --target install |
pascal@20985 | 27 } |
pascal@20985 | 28 |
pascal@20985 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20985 | 30 genpkg_rules() |
pascal@20985 | 31 { |
pascal@20985 | 32 mkdir -p $fs/usr/lib |
pascal@20985 | 33 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@20985 | 34 } |