# Description: A Wayland native snapshot editing tool, inspired by Snappy on macOS
# URL: https://github.com/jtheoof/swappy
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: gtk3 scdoc

name=swappy
version=1.8.0
release=1
source=(https://github.com/jtheoof/swappy/archive/v$version/$name-$version.tar.gz)

build() {
  sed -i 's/if git.found()/if false/' $name-$version/meson.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

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