libxklavier: added gir build option; remove long_desc.
This commit is contained in:
parent
87852f329c
commit
cc06cf00d9
1 changed files with 20 additions and 8 deletions
|
@ -1,10 +1,10 @@
|
||||||
# Template build file for 'libxklavier'.
|
# Template build file for 'libxklavier'.
|
||||||
pkgname=libxklavier
|
pkgname=libxklavier
|
||||||
version=5.3
|
version=5.3
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static"
|
configure_args="--disable-static"
|
||||||
hostmakedepends="pkg-config gobject-introspection"
|
hostmakedepends="pkg-config glib-devel"
|
||||||
makedepends="libglib-devel libxkbfile-devel libxml2-devel>=2.7.8 libXi-devel xkeyboard-config iso-codes"
|
makedepends="libglib-devel libxkbfile-devel libxml2-devel>=2.7.8 libXi-devel xkeyboard-config iso-codes"
|
||||||
depends="xkeyboard-config iso-codes"
|
depends="xkeyboard-config iso-codes"
|
||||||
short_desc="Library providing high-level API for X Keyboard Extension"
|
short_desc="Library providing high-level API for X Keyboard Extension"
|
||||||
|
@ -13,18 +13,30 @@ license="LGPL-2"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
distfiles="${GNOME_SITE}/$pkgname/5.3/$pkgname-$version.tar.xz"
|
distfiles="${GNOME_SITE}/$pkgname/5.3/$pkgname-$version.tar.xz"
|
||||||
checksum=ebec3bc54b5652838502b96223152fb1cd8fcb14ace5cb02d718fc3276bbd404
|
checksum=ebec3bc54b5652838502b96223152fb1cd8fcb14ace5cb02d718fc3276bbd404
|
||||||
long_desc="
|
|
||||||
libxklavier is a library providing high-level API for X Keyboard Extension
|
# Package build options
|
||||||
known as XKB. This library is intended to support XFree86 and other
|
build_options="gir"
|
||||||
commercial X servers. It is useful for creating XKB-related software
|
desc_option_gir="Enable support for building gobject introspection data"
|
||||||
(layout indicators etc)."
|
|
||||||
|
# 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
|
||||||
|
|
||||||
libxklavier-devel_package() {
|
libxklavier-devel_package() {
|
||||||
depends="libglib-devel libxml2-devel>=2.7.8 libxklavier>=${version}"
|
depends="libglib-devel libxml2-devel>=2.7.8 ${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" -- development files"
|
short_desc+=" -- development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/share
|
vmove usr/share
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
|
vmove "usr/lib/*.so"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue