wok annotate libgit2/receipt @ rev 24890

trafshow: libpcap 1.10 has its own pcap_init
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 05 09:06:43 2022 +0000 (2022-04-05)
parents 2b6b3912d775
children 7364ffdaaa60
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 }