wok view libgit2/receipt @ rev 25576
Up nimrod (1.6.12)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 13 17:57:27 2023 +0000 (18 months ago) |
parents | 2b6b3912d775 |
children | 7364ffdaaa60 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libgit2"
4 VERSION="0.28.1"
5 CATEGORY="development"
6 SHORT_DESC="A library implementation of Git"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://libgit2.org/"
11 WGET_URL="https://github.com/libgit2/libgit2/archive/v$VERSION.tar.gz"
13 BUILD_DEPENDS="cmake python pkg-config openssl-dev"
15 current_version()
16 {
17 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
18 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 mkdir build && cd build
25 cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
26 cmake --build . --target install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib
33 cp -a $install/usr/lib/*.so* $fs/usr/lib
34 }