# Description: Tiny dynamic menu for Wayland
# URL: https://github.com/philj56/tofi
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: libxkbcommon pango wayland-protocols

name=tofi
version=0.9.1
release=1
source=(https://github.com/philj56/tofi/archive/v$version/$name-$version.tar.gz)

build() {
  meson setup $name-$version build \
    --prefix=/usr \
    --buildtype=plain \
    --wrap-mode nodownload \
    -D b_lto=true \
    -D b_pie=true

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

  prt-get isinst bash-completions || rm -r $PKG/usr/share/bash-completion

  rm -r $PKG/usr/share/licenses
}
