41 lines
1 KiB
Bash
41 lines
1 KiB
Bash
# Template build file for 'atk'.
|
|
pkgname=atk
|
|
version=2.18.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config glib-devel"
|
|
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=ce6c48d77bf951083029d5a396dd552d836fff3c1715d3a7022e917e46d0c92b
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
|
|
# 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>=2.38 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
|
|
}
|
|
}
|