aboutsummaryrefslogtreecommitdiff
path: root/xfce4-whiskermenu-plugin/Pkgfile
blob: 80b04b6f7810dc615b722c5fb7691a0e70299998 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Description: An alternate menu for xfce
# URL: https://xfce.org
# Maintainer: Jay Lanagan, j at lngn dot net
# Depends on: xfce4-panel
# Optional: accountsservice gtk-layer-shell

name=xfce4-whiskermenu-plugin
version=2.10.1
release=1
source=(https://archive.xfce.org/src/panel-plugins/$name/${version:0:4}/$name-$version.tar.xz)

build() {

  prt-get isinst accountsservice && PKGMK_WHISKERMENU+=' -D accountsservice=enabled' || PKGMK_WHISKERMENU+=' -D accountsservice=disabled'
  prt-get isinst gtk-layer-shell && PKGMK_WHISKERMENU+=' -D gtk-layer-shell=enabled' || PKGMK_WHISKERMENU+=' -D gtk-layer-shell=disabled'

  meson setup $name-$version build $PKGMK_WHISKERMENU \
    --prefix=/usr \
    --libdir=/usr/lib \
    --buildtype=plain \
    -Db_lto=true \
    -Db_pie=true

  meson compile -C build
  DESTDIR=$PKG meson install -C build

  rm -r $PKG/usr/share/locale

}