makedepends=(qt6-5compat qt6-tools qt6-translations git)

description="A cross-platform, reimplementation of Notepad++"
url="https://github.com/dail8859/NotepadNext"

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

name=notepad-next
version=0.12
release=1

_commit=48e3b2df795f69631a8f205697cbb817873fb57e

source=()

prepare() {
  git clone --recurse-submodules https://github.com/dail8859/NotepadNext.git $name-$version

  cd $name-$version
  git checkout ${_commit}
}

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

  qmake6 ../$name-$version/src/NotepadNext.pro

  make
  make INSTALL_ROOT=$PKG install 
}
