libgit2: provide virtual packages for conflicts, drop cli

This commit is contained in:
tranzystorekk 2024-08-04 11:55:19 +02:00
parent 68f2e8a987
commit 6ab131b9d4
1 changed files with 4 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# Template file for 'libgit2'
pkgname=libgit2
version=1.7.2
revision=1
revision=2
build_style=cmake
configure_args="-DENABLE_REPRODUCIBLE_BUILDS=ON -DUSE_SSH=ON -DUSE_HTTP_PARSER=system"
configure_args="-DENABLE_REPRODUCIBLE_BUILDS=ON -DBUILD_CLI=OFF -DUSE_SSH=ON -DUSE_HTTP_PARSER=system"
hostmakedepends="python3 pkg-config"
makedepends="zlib-devel openssl-devel http-parser-devel libssh2-devel"
short_desc="Git linkable library"
@ -34,6 +34,8 @@ post_install() {
libgit2-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
provides="virtual-libgit2-devel-${version}_${revision}"
conflicts="virtual-libgit2-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include