void-packages/srcpkgs/libdbusmenu-glib/template

67 lines
2.0 KiB
Bash

# Template file for 'libdbusmenu-glib'
pkgname=libdbusmenu-glib
version=16.04.0
revision=4
wrksrc="libdbusmenu-${version}"
build_style=gnu-configure
build_helper="gir"
configure_args="--disable-dumper --disable-static --disable-tests
$(vopt_enable gir vala) $(vopt_enable gir introspection) HAVE_VALGRIND_FALSE=''"
hostmakedepends="automake gettext-devel glib-devel intltool libtool pkg-config
$(vopt_if gir 'gobject-introspection vala-devel')"
makedepends="gtk+3-devel"
short_desc="Library for passing menus over DBus"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="GPL-3, LGPL-2.1, LGPL-3"
homepage="https://launchpad.net/libdbusmenu"
distfiles="${homepage}/${version%.*}/${version}/+download/libdbusmenu-${version}.tar.gz"
checksum=b9cc4a2acd74509435892823607d966d424bd9ad5d0b00938f27240a1bfa878a
build_options="gir"
build_options_default="gir"
pre_configure() {
autoreconf -fi
}
libdbusmenu-glib-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include/libdbusmenu-glib-*
vmove usr/lib/pkgconfig/dbusmenu-glib-*.pc
vmove usr/lib/libdbusmenu-glib.so
vmove usr/share/gtk-doc/html/libdbusmenu-glib
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0/Dbusmenu-*.gir
vmove usr/share/vala/vapi/Dbusmenu-*.vapi
fi
}
}
libdbusmenu-gtk3_package() {
short_desc+=" (GTK+3)"
pkg_install() {
vmove usr/lib/libdbusmenu-gtk3.so.*
if [ "$build_option_gir" ]; then
vmove usr/lib/girepository-1.0/DbusmenuGtk3-*.typelib
fi
}
}
libdbusmenu-gtk3-devel_package() {
depends="gtk+3-devel gdk-pixbuf-devel libdbusmenu-gtk3>=${version}_${revision}
libdbusmenu-glib-devel"
short_desc+=" (GTK+3) - development files"
pkg_install() {
vmove usr/include/libdbusmenu-gtk3-*
vmove usr/lib/pkgconfig/dbusmenu-gtk3-*.pc
vmove usr/lib/libdbusmenu-gtk3.so
vmove usr/share/gtk-doc/html/libdbusmenu-gtk
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0/DbusmenuGtk3-*.gir
vmove usr/share/vala/vapi/DbusmenuGtk3-*.vapi
fi
}
}