wok-current annotate libgit2/receipt @ rev 25670
Update firmware-* packages to 20240220
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sat Mar 02 21:41:14 2024 +0000 (11 months ago) |
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 } |