void-packages/srcpkgs/uhttpmock/template

36 lines
1.0 KiB
Bash

# Template file for 'uhttpmock'
pkgname=uhttpmock
version=0.5.3
revision=1
build_style=gnu-configure
build_helper="gir"
hostmakedepends="automake pkg-config vala"
makedepends="glib-devel libsoup-devel vala"
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.com/uhttpmock/uhttpmock"
distfiles="http://tecnocode.co.uk/downloads/uhttpmock/$pkgname-$version.tar.xz"
checksum=90843223c3a30bdb7f1eb3442373a03fee425af85a9df289cd687698ccff112f
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
vmove usr/share/gir-1.0
vmove usr/share/vala
}
}