void-packages/srcpkgs/uhttpmock/template
2019-04-30 01:41:06 +02:00

40 lines
1.2 KiB
Bash

# Template file for 'uhttpmock'
pkgname=uhttpmock
version=0.5.1
revision=3
build_style=gnu-configure
build_helper="gir"
hostmakedepends="pkg-config $(vopt_if gir 'gobject-introspection vala')"
makedepends="glib-devel libsoup-devel $(vopt_if gir 'gobject-introspection vala')"
short_desc="HTTP web service mocking project for projects which use libsoup"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1"
homepage="https://gitlab.com/uhttpmock/uhttpmock"
distfiles="http://tecnocode.co.uk/downloads/uhttpmock/$pkgname-$version.tar.xz"
checksum=a6a34a011db142a98473b492039c84468d575f416689484f1f82a84927f17798
build_options="gir"
build_options_default="gir"
pre_build() {
if [ "$CROSS_BUILD" ]; then
# Make g-ir-scanner-qemuwrapper append this path
export GIR_EXTRA_LIBS_PATH="${wrksrc}/libuhttpmock/.libs"
fi
}
uhttpmock-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
vmove usr/share/vala
fi
}
}