libgtop: added gir build option; remove long_desc.
This commit is contained in:
parent
b46634c1b8
commit
0c453ecc6d
1 changed files with 22 additions and 9 deletions
|
@ -1,10 +1,10 @@
|
||||||
# Template build file for 'libgtop'.
|
# Template build file for 'libgtop'.
|
||||||
pkgname=libgtop
|
pkgname=libgtop
|
||||||
version=2.28.5
|
version=2.28.5
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="-with-libgtop-smp"
|
configure_args="-with-libgtop-smp"
|
||||||
hostmakedepends="pkg-config intltool gobject-introspection"
|
hostmakedepends="pkg-config intltool"
|
||||||
makedepends="libglib-devel libXau-devel"
|
makedepends="libglib-devel libXau-devel"
|
||||||
short_desc="Library to retrieve system information, used in GNOME"
|
short_desc="Library to retrieve system information, used in GNOME"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
@ -12,14 +12,25 @@ homepage="http://www.gnome.org/"
|
||||||
license="LGPL-2.1"
|
license="LGPL-2.1"
|
||||||
distfiles="${GNOME_SITE}/$pkgname/2.28/$pkgname-$version.tar.xz"
|
distfiles="${GNOME_SITE}/$pkgname/2.28/$pkgname-$version.tar.xz"
|
||||||
checksum=c812c174e44a8971a1f33265437cfd10f1e99869c7f5c05f8ee95846a70a3342
|
checksum=c812c174e44a8971a1f33265437cfd10f1e99869c7f5c05f8ee95846a70a3342
|
||||||
long_desc="
|
|
||||||
libgtop is a library that fetches system information about the running
|
# Package build options
|
||||||
system such as cpu and memory usage, active processes etc. It
|
build_options="gir"
|
||||||
provides a setgid server that fetches the information and a
|
desc_option_gir="Enable support for building gobject introspection data"
|
||||||
client-side library that talks to this server."
|
|
||||||
|
# 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
|
||||||
|
|
||||||
libgtop-devel_package() {
|
libgtop-devel_package() {
|
||||||
depends="libglib-devel libXau-devel libgtop>=${version}"
|
depends="libglib-devel libXau-devel ${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
|
@ -27,7 +38,9 @@ libgtop-devel_package() {
|
||||||
vmove "usr/lib/*.a"
|
vmove "usr/lib/*.a"
|
||||||
vmove "usr/lib/*.so"
|
vmove "usr/lib/*.so"
|
||||||
vmove usr/share/info
|
vmove usr/share/info
|
||||||
|
if [ "$build_option_gir" ]; then
|
||||||
vmove usr/share/gir-1.0
|
vmove usr/share/gir-1.0
|
||||||
|
fi
|
||||||
vmove usr/share/gtk-doc
|
vmove usr/share/gtk-doc
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue