void-packages/srcpkgs/libgtop/template
2016-10-30 18:06:53 +01:00

38 lines
1.1 KiB
Bash

# Template build file for 'libgtop'.
pkgname=libgtop
version=2.34.1
revision=1
build_style=gnu-configure
configure_args="--with-libgtop-smp $(vopt_enable gir introspection)"
hostmakedepends="pkg-config intltool $(vopt_if gir gobject-introspection)"
makedepends="libglib-devel libXau-devel"
short_desc="Library to retrieve system information, used in GNOME"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.gnome.org/"
license="LGPL-2.1"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=c89978a76662b18d392edbe0d1b794f5a9a399a5ccf22a02d5b9e28b5ed609e2
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
libgtop-devel_package() {
depends="libglib-devel libXau-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share/info
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
vmove usr/share/gtk-doc
}
}