mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-12 20:27:02 +02:00
42 lines
1.3 KiB
Bash
42 lines
1.3 KiB
Bash
# Template file for 'libgit2-glib'
|
|
pkgname=libgit2-glib
|
|
version=1.2.1
|
|
revision=1
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="-Dintrospection=$(vopt_if gir true false)
|
|
-Dvapi=$(vopt_if gir true false)"
|
|
hostmakedepends="pkg-config glib-devel $(vopt_if gir vala)"
|
|
makedepends="libglib-devel libgit2-1.9-devel libssh2-devel python3-gobject-devel"
|
|
short_desc="Glib wrapper library around libgit2"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://wiki.gnome.org/Projects/Libgit2-glib"
|
|
changelog="https://gitlab.gnome.org/GNOME/libgit2-glib/-/raw/master/NEWS"
|
|
distfiles="${GNOME_SITE}/libgit2-glib/${version%.*}/libgit2-glib-${version}.tar.xz"
|
|
checksum=97423a779002b3be8751c75f9d79049dfccca3616a26159fc162486772ba785f
|
|
|
|
build_options="gir"
|
|
build_options_default="gir"
|
|
|
|
CPPFLAGS="-UG_DISABLE_ASSERT"
|
|
|
|
post_patch() {
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
vsed -i "s,TEST.*encoding.*,/* & */," tests/repository.c
|
|
fi
|
|
}
|
|
|
|
libgit2-glib-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} libglib-devel libgit2-1.9-devel"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|