void-packages/srcpkgs/libgtop/template

46 lines
1.2 KiB
Text
Raw Normal View History

# Template build file for 'libgtop'.
pkgname=libgtop
2015-01-18 01:12:28 +00:00
version=2.30.0
revision=1
build_style=gnu-configure
configure_args="-with-libgtop-smp"
hostmakedepends="pkg-config intltool"
makedepends="libglib-devel libXau-devel"
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"
2015-01-18 01:12:28 +00:00
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=463bcbe5737b1b93f3345ee34abf601e8eb864f507c49ff1921c2737abafc1e5
# 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
libgtop-devel_package() {
depends="libglib-devel libXau-devel ${sourcepkg}>=${version}_${revision}"
2013-08-20 12:10:13 +00:00
short_desc+=" - development files"
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"
vmove usr/share/info
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
}
}