void-packages/srcpkgs/atk/template
2016-10-30 15:11:45 +01:00

35 lines
950 B
Bash

# Template build file for 'atk'.
pkgname=atk
version=2.22.0
revision=1
build_style=gnu-configure
configure_args="$(vopt_enable gir introspection)"
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"
distfiles="${GNOME_SITE}/atk/${version%.*}/atk-${version}.tar.xz"
checksum=d349f5ca4974c9c76a4963e5b254720523b0c78672cbc0e1a3475dbd9b3d44b6
# 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
vmove usr/share/gtk-doc
}
}