95 lines
2.6 KiB
Bash
95 lines
2.6 KiB
Bash
# Template file for 'vala-panel-appmenu'
|
|
pkgname=vala-panel-appmenu
|
|
version=0.7.2
|
|
revision=2
|
|
build_style=cmake
|
|
configure_args="-DENABLE_XFCE=ON -DENABLE_VALAPANEL=ON
|
|
-DENABLE_MATE=ON -DENABLE_JAYATANA=OFF -DENABLE_APPMENU_GTK_MODULE=ON"
|
|
hostmakedepends="pkg-config vala bamf glib-devel"
|
|
makedepends="vala-devel bamf-devel gtk+-devel gtk+3-devel
|
|
libxkbcommon-devel libpeas-devel libdbusmenu-glib-devel cmake-vala
|
|
xfce4-panel-devel xfconf-devel libmate-panel-devel libXt-devel
|
|
vala-panel-devel"
|
|
depends="vala-panel-appmenu-data-${version}_${revision}"
|
|
short_desc="Global Menu for Vala Panel"
|
|
maintainer="John Eira <john.eira@web.de>"
|
|
license="LGPL-3.0-or-later"
|
|
homepage="https://gitlab.com/vala-panel-project/vala-panel-appmenu"
|
|
distfiles="https://gitlab.com/vala-panel-project/vala-panel-appmenu/uploads/57fe7a74b38180002154fbd6028075db/vala-panel-appmenu-${version}.tar.xz"
|
|
checksum=80884ebd71b665da7a1eac67752596ecbb29d3a8dd9eee9a2e3212dfc0aab6ae
|
|
|
|
post_install() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
mv ${DESTDIR}/usr/${XBPS_CROSS_TRIPLET}/usr/lib/gtk-2.0 \
|
|
${DESTDIR}/usr/lib
|
|
|
|
mv ${DESTDIR}/usr/${XBPS_CROSS_TRIPLET}/usr/lib/gtk-3.0 \
|
|
${DESTDIR}/usr/lib
|
|
fi
|
|
}
|
|
|
|
appmenu-gtk-module-devel_package() {
|
|
short_desc="GTK module for exposing menus - development files"
|
|
depends="appmenu-gtk-module-${version}_${revision}
|
|
appmenu-gtk3-module-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/libappmenu-gtk2*.so"
|
|
vmove "usr/lib/libappmenu-gtk3*.so"
|
|
}
|
|
}
|
|
|
|
appmenu-gtk-module_package() {
|
|
short_desc="GTK module for exposing menus"
|
|
pkg_install() {
|
|
vmove usr/lib/gtk-2.0
|
|
vmove "usr/lib/libappmenu-gtk2*.so.*"
|
|
}
|
|
}
|
|
|
|
appmenu-gtk3-module_package() {
|
|
short_desc="GTK3 module for exposing menus"
|
|
pkg_install() {
|
|
vmove usr/lib/gtk-3.0
|
|
vmove "usr/lib/libappmenu-gtk3*.so.*"
|
|
}
|
|
}
|
|
|
|
appmenu-registrar_package() {
|
|
short_desc="Appmenu registrar that allows to access a window's menu tree"
|
|
pkg_install() {
|
|
vmove usr/libexec/vala-panel
|
|
vmove usr/share/dbus-1
|
|
}
|
|
}
|
|
|
|
xfce4-panel-appmenu_package() {
|
|
short_desc="XFCE Panel applet for appmenu module"
|
|
depends="xfce4-panel appmenu-registrar
|
|
${sourcepkg}-data-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/lib/xfce4
|
|
vmove usr/share/xfce4
|
|
}
|
|
}
|
|
|
|
mate-panel-appmenu_package() {
|
|
short_desc="Mate Panel applet for appmenu module"
|
|
depends="mate-panel appmenu-registrar
|
|
${sourcepkg}-data-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/lib/mate-panel
|
|
vmove usr/share/mate-panel
|
|
}
|
|
}
|
|
|
|
vala-panel-appmenu-data_package() {
|
|
short_desc+=" - common files"
|
|
archs=noarch
|
|
pkg_install() {
|
|
vmove usr/share/locale
|
|
vmove usr/share/glib-2.0/schemas/org.valapanel.appmenu.gschema.xml
|
|
}
|
|
}
|