void-packages/srcpkgs/uhttpmock/template

38 lines
1.1 KiB
Bash

# Template file for 'uhttpmock'
pkgname=uhttpmock
version=0.10.0
revision=2
build_style=meson
build_helper="gir"
configure_args="$(vopt_bool gtk_doc gtk_doc)"
hostmakedepends="pkg-config vala $(vopt_if gtk_doc gtk-doc)"
makedepends="glib-devel libsoup3-devel"
short_desc="HTTP web service mocking project for projects which use libsoup"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://gitlab.freedesktop.org/pwithnall/uhttpmock/"
changelog="https://gitlab.freedesktop.org/pwithnall/uhttpmock/-/raw/main/NEWS"
distfiles="https://gitlab.freedesktop.org/pwithnall/uhttpmock/-/archive/${version}/uhttpmock-${version}.tar.gz"
checksum=a4294a9e0f0c619957cefc34e55561990519c25468f07cb7c4e5aa7368ef840b
build_options="gtk_doc"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gtk_doc"
fi
uhttpmock-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
if [ "$build_option_gtk_doc" ]; then
vmove usr/share/gtk-doc
fi
vmove usr/share/gir-1.0
vmove usr/share/vala
}
}