makedepends=(qt6-svg qt6-imageformats kguiaddons xdg-desktop-portal hicolor-icon-theme git qt6-tools cmake)

description="Powerful yet simple to use screenshot software"
url="https://github.com/lupoDharkael/flameshot"

packager="Great-OS Team"
maintainer="Great-OS Team"

name=flameshot
version=13.3.0

PKGMK_KEEP_SOURCES='no'

source=(https://github.com/flameshot-org/flameshot/archive/refs/tags/v${version}.tar.gz)

build() {
  mkdir -pv build && cd build

  cmake ../$name-$version \
        -DCMAKE_INSTALL_PREFIX=/usr
  make
  
  make DESTDIR="${PKG}" install

  # zsh _flameshot completion is provided by zsh-completions so exclude from packaging
  rm -rf ${PKG}/usr/share/zsh/
}
