appmenu-gtk-module 24.05

This commit is contained in:
Евгений Храмов 2024-12-03 20:40:46 +03:00
parent 02aa214ce0
commit afca406c40
2 changed files with 51 additions and 0 deletions

@ -0,0 +1,14 @@
#!/bin/sh
if [ -n "$GTK_MODULES" ]; then
GTK_MODULES="${GTK_MODULES}:appmenu-gtk-module"
else
GTK_MODULES="appmenu-gtk-module"
fi
if [ -z "$UBUNTU_MENUPROXY" ]; then
UBUNTU_MENUPROXY=1
fi
export GTK_MODULES
export UBUNTU_MENUPROXY

37
appmenu-gtk-module/alr.sh Normal file

@ -0,0 +1,37 @@
name="appmenu-gtk-module"
version='24.05'
release='1'
desc="Application Menu GTK+ Module."
homepage="https://gitlab.com/vala-panel-project/vala-panel-appmenu/"
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
architectures=('amd64')
license=('LGPL-3.0-only')
provides=('appmenu-gtk-module')
conflicts=('appmenu-gtk-module')
build_deps=(
'git'
'gtk2-devel'
'gtk3-devel'
'meson'
)
optdepends=('gtk2: GTK2 module'
'gtk3: GTK3 module')
sources=("git+https://gitlab.com/vala-panel-project/vala-panel-appmenu#tag=$version")
checksums=('SKIP')
_app_id="org.$pkgname.CoolerControl"
build() {
meson build vala-panel-appmenu/subprojects/$name \
--prefix=/usr
ninja -C build
}
package() {
DESTDIR="$pkgdir" ninja install -C build
install -Dm755 $scriptdir/80-appmenu-gtk-module.sh -t "$pkgdir"/etc/X11/xinit/xinitrc.d/
}