void-packages/srcpkgs/mate-panel/template

52 lines
1.6 KiB
Bash

# Template file for 'mate-panel'
pkgname=mate-panel
version=1.28.2
revision=1
build_style=gnu-configure
build_helper="gir"
configure_args="--disable-static --disable-schemas-compile
--libexecdir=/usr/libexec/mate
$(vopt_enable wayland)
$(vopt_enable gir introspection)"
hostmakedepends="glib-devel gettext itstool pkg-config
$(vopt_if wayland wayland-devel) $(vopt_if gir 'gobject-introspection')"
makedepends="dbus-glib-devel libSM-devel libcaja-devel libcanberra-devel
libmarco-devel libmateweather-devel librsvg-devel libwnck-devel
mate-desktop-devel mate-menus-devel
$(vopt_if wayland 'wayland-devel gtk-layer-shell-devel')"
depends="caja marco mate-session-manager dconf-editor"
short_desc="MATE Panel"
maintainer="skmpz <dem.procopiou@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://mate-desktop.org"
changelog="https://raw.githubusercontent.com/mate-desktop/mate-panel/master/NEWS"
distfiles="https://pub.mate-desktop.org/releases/${version%.*}/mate-panel-${version}.tar.xz"
checksum=678a43e837aa2718494204fddf19bb906cf07e5d80fd2e1dde745f26d2adba33
build_options="gir wayland"
build_options_default="gir wayland"
libmate-panel_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove usr/lib/*.so.*
if [ "$build_option_gir" ]; then
vmove usr/lib/girepository-1.0
fi
}
}
libmate-panel-devel_package() {
short_desc+=" - development files"
depends="gtk+3-devel lib${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}