void-packages/srcpkgs/atk/template
2018-09-09 00:19:09 -03:00

34 lines
927 B
Bash

# Template file for 'atk'
pkgname=atk
version=2.30.0
revision=1
build_style=meson
configure_args="-Dintrospection=$(vopt_if gir true false)"
hostmakedepends="pkg-config glib-devel $(vopt_if gir gobject-introspection)"
makedepends="libglib-devel"
short_desc="Set of interfaces for accessibility"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.gtk.org/"
license="LGPL-2.1-or-later"
distfiles="${GNOME_SITE}/atk/${version%.*}/atk-${version}.tar.xz"
checksum=dd4d90d4217f2a0c1fee708a555596c2c19d26fef0952e1ead1938ab632c027b
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
atk-devel_package() {
depends="${makedepends} atk>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove "usr/share/gir-*"
fi
}
}