void-packages/srcpkgs/atk/template
2017-10-20 21:41:42 +02:00

35 lines
950 B
Bash

# Template build file for 'atk'.
pkgname=atk
version=2.26.1
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=ef00ff6b83851dddc8db38b4d9faeffb99572ba150b0664ee02e46f015ea97cb
# 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
}
}