gsettings-desktop-schemas: added gir build option for cross compilation.
This commit is contained in:
parent
ed9ac8881e
commit
164a65cbab
@ -1,9 +1,9 @@
|
|||||||
# Template file for 'gsettings-desktop-schemas'
|
# Template file for 'gsettings-desktop-schemas'
|
||||||
pkgname=gsettings-desktop-schemas
|
pkgname=gsettings-desktop-schemas
|
||||||
version=3.10.1
|
version=3.10.1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config intltool gobject-introspection"
|
hostmakedepends="pkg-config intltool glib-devel"
|
||||||
makedepends="libglib-devel"
|
makedepends="libglib-devel"
|
||||||
short_desc="Collection of GSettings schemas"
|
short_desc="Collection of GSettings schemas"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
@ -11,16 +11,31 @@ license="GPL-2"
|
|||||||
homepage="http://www.gnome.org"
|
homepage="http://www.gnome.org"
|
||||||
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
||||||
checksum=452378c4960a145747ec69f8c6a874e5b7715454df3e2452d1ff1a0a82e76811
|
checksum=452378c4960a145747ec69f8c6a874e5b7715454df3e2452d1ff1a0a82e76811
|
||||||
long_desc="
|
|
||||||
${pkgname} contains a collection of GSettings schemas for
|
# Package build options
|
||||||
settings shared by various components of a desktop."
|
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"
|
||||||
|
hostmakedepends+=" gobject-introspection"
|
||||||
|
else
|
||||||
|
configure_args+=" --disable-introspection"
|
||||||
|
fi
|
||||||
|
|
||||||
gsettings-desktop-schemas-devel_package() {
|
gsettings-desktop-schemas-devel_package() {
|
||||||
depends="${sourcepkg}>=${version}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/share/pkgconfig
|
vmove usr/share/pkgconfig
|
||||||
|
if [ "$build_option_gir" ]; then
|
||||||
vmove usr/share/gir-1.0
|
vmove usr/share/gir-1.0
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user