2010-04-11 13:13:42 +00:00
|
|
|
# Template build file for 'libgtop'.
|
|
|
|
pkgname=libgtop
|
2013-08-20 12:10:13 +00:00
|
|
|
version=2.28.5
|
2014-02-20 16:58:12 +00:00
|
|
|
revision=2
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2011-10-16 17:46:38 +00:00
|
|
|
configure_args="-with-libgtop-smp"
|
2014-02-20 16:58:12 +00:00
|
|
|
hostmakedepends="pkg-config intltool"
|
2013-04-13 08:15:49 +00:00
|
|
|
makedepends="libglib-devel libXau-devel"
|
2010-04-11 13:13:42 +00:00
|
|
|
short_desc="Library to retrieve system information, used in GNOME"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-08-30 14:04:56 +00:00
|
|
|
homepage="http://www.gnome.org/"
|
|
|
|
license="LGPL-2.1"
|
2013-08-20 12:10:13 +00:00
|
|
|
distfiles="${GNOME_SITE}/$pkgname/2.28/$pkgname-$version.tar.xz"
|
|
|
|
checksum=c812c174e44a8971a1f33265437cfd10f1e99869c7f5c05f8ee95846a70a3342
|
2014-02-20 16:58:12 +00:00
|
|
|
|
|
|
|
# Package build options
|
|
|
|
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"
|
|
|
|
makedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
2010-04-11 13:13:42 +00:00
|
|
|
|
2013-04-13 08:15:49 +00:00
|
|
|
libgtop-devel_package() {
|
2014-02-20 16:58:12 +00:00
|
|
|
depends="libglib-devel libXau-devel ${sourcepkg}>=${version}_${revision}"
|
2013-08-20 12:10:13 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
2013-08-20 12:10:13 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 08:15:49 +00:00
|
|
|
vmove usr/share/info
|
2014-02-20 16:58:12 +00:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
fi
|
2013-08-20 12:10:13 +00:00
|
|
|
vmove usr/share/gtk-doc
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|