appmenu-gtk-module: added to support global menu for some gtk apps [skip-ci]

This commit is contained in:
Chaoting Liu 2018-07-16 20:28:46 +02:00
parent 13d11de8ca
commit f16c131520
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,12 @@
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

View File

@ -0,0 +1,39 @@
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: rilian-la-te <ria.freelander@gmail.com>
# Contributor: Kaizhao Zhang <zhangkaizhao@gmail.com>
pkgname=appmenu-gtk-module
pkgver=0.6.94
pkgrel=1
pkgdesc="Application Menu GTK+ Module"
depends=()
makedepends=(cmake gtk3 gtk2)
optdepends=('gtk3: GTK3 module' 'gtk2: GTK2 module')
url="https://github.com/rilian-la-te/vala-panel-appmenu"
arch=(x86_64)
license=(LGPL3)
source=("https://github.com/rilian-la-te/vala-panel-appmenu/releases/download/${pkgver}/appmenu-gtk-module.tar.xz"
80-appmenu-gtk-module)
sha256sums=('97a5ec89688be1a88470b44e829c198b200678b75c969f8bc4532c7db18575ee'
'4c006c4ea7b8556070ad6d35529d3a9e23da8033429e34d1824c25942d969fbc')
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../$pkgname \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_LIBEXECDIR=lib
make
}
package() {
cd build
make DESTDIR="$pkgdir" install
install -dm755 "$pkgdir"/etc/X11/xinit/xinitrc.d/
install -m755 "$srcdir"/80-appmenu-gtk-module "$pkgdir"/etc/X11/xinit/xinitrc.d/
}