wok view libgit2/receipt @ rev 25803

Up libgit2 (1.8.4), libsde-utils (0.1.0-r1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 12 15:28:00 2024 +0000 (3 weeks ago)
parents 7364ffdaaa60
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libgit2"
4 VERSION="1.8.4"
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 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
19 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 mkdir build && cd build
26 cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
27 cmake --build . --target install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib
34 cp -a $install/usr/lib/*.so* $fs/usr/lib
35 }