void-packages/srcpkgs/clutter-gtk/template
2019-02-23 20:32:47 +01:00

38 lines
1 KiB
Bash

# Template file for 'clutter-gtk'
pkgname=clutter-gtk
version=1.8.4
revision=3
build_style=gnu-configure
build_helper="gir"
configure_args="$(vopt_enable gir introspection)"
hostmakedepends="pkg-config intltool"
makedepends="gtk+3-devel clutter-devel"
short_desc="GTK+3 bindings for the Clutter Toolkit"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://clutter-project.org/"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=521493ec038973c77edcb8bc5eac23eed41645117894aaee7300b2487cb42b06
# Package build options
build_options="gir"
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl) build_options_default+=" gir" ;;
*-musl) ;;
*) build_options_default+=" gir" ;;
esac
clutter-gtk-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}