diff --git a/appmenu-gtk-module/80-appmenu-gtk-module b/appmenu-gtk-module/80-appmenu-gtk-module new file mode 100644 index 0000000..feef224 --- /dev/null +++ b/appmenu-gtk-module/80-appmenu-gtk-module @@ -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 diff --git a/appmenu-gtk-module/PKGBUILD b/appmenu-gtk-module/PKGBUILD new file mode 100644 index 0000000..844bca4 --- /dev/null +++ b/appmenu-gtk-module/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Antonio Rojas +# Contributor: rilian-la-te +# Contributor: Kaizhao Zhang + +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/ +}