void-packages/srcpkgs/libchamplain/template
2019-02-25 03:20:28 -03:00

41 lines
1.2 KiB
Bash

# Template file for 'libchamplain'
pkgname=libchamplain
version=0.12.18
revision=2
build_style=meson
build_helper="gir"
configure_args="-Dintrospection=$(vopt_if gir true false)
-Dvapi=$(vopt_if vala true false)"
hostmakedepends="pkg-config glib-devel $(vopt_if vala vala)"
makedepends="libsoup-gnome-devel gtk+3-devel clutter-gtk-devel sqlite-devel"
short_desc="Library aimed to provide a Clutter widget to display rasterized maps"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://projects.gnome.org/libchamplain/"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=68ecc8561565693980ed7c0ad8feebbebc7afed77a382bbe14e097a68f7c6fe4
# Package build options
build_options="gir vala"
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
*-musl) ;;
*) build_options_default+=" gir vala" ;;
esac
libchamplain-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}