void-packages/srcpkgs/atk/template

64 lines
1.7 KiB
Text

# Template build file for 'atk'.
pkgname=atk
version=2.8.0
revision=3
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="glib-devel>=2.36"
short_desc="Set of interfaces for accessibility"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.gtk.org/"
license="LGPL-2.1"
distfiles="${GNOME_SITE}/atk/${version%.*}/atk-${version}.tar.xz"
checksum=b22519176226f3e07cf6d932b77852e6b6be4780977770704b32d0f4e0686df4
long_desc="
The ATK library provides a set of interfaces for accessibility.
By supporting the ATK interfaces, an application or toolkit can
be used with such tools as screen readers, magnifiers,
and alternative input devices.
Atk provides a core set of interfaces which are common to all
widgets and additional interfaces that are appropriate to certain
classes of widgets and whose existence can be queried at run time.
It also provides interfaces which an application can use to provide
additional accessibility information to assistive technology tools."
if [ "$CROSS_BUILD" ]; then
# needs glib-mkenums
hostmakedepends+=" glib-devel"
fi
# Package build options
build_options="gir"
desc_option_gir="Enable support for building gobject introspection data"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
if [ "$build_option_gir" ]; then
configure_args+=" --enable-introspection"
makedepends+=" gobject-introspection"
else
configure_args+=" --disable-introspection"
fi
atk-devel_package() {
depends="libglib-devel atk>=${version}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove "usr/share/gir-*"
fi
vmove usr/share/gtk-doc
}
}
atk_package() {
pkg_install() {
vmove usr
}
}