void-packages/srcpkgs/libgtop/template

36 lines
1.0 KiB
Bash

# Template file for 'libgtop'
pkgname=libgtop
version=2.40.0
revision=2
build_style=gnu-configure
build_helper="gir"
configure_args="--with-libgtop-smp $(vopt_enable gir introspection)"
hostmakedepends="pkg-config perl"
makedepends="libglib-devel libXau-devel"
short_desc="Library to retrieve system information, used in GNOME"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://developer.gnome.org/libgtop/stable/"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=78f3274c0c79c434c03655c1b35edf7b95ec0421430897fb1345a98a265ed2d4
# Package build options
build_options="gir"
build_options_default="gir"
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
}
}