makedepends=(enchant gvfs libpeas yelp-xsl enchant iso-codes libsoup libzeitgeist python-gobject
             gspell gtksourceview4 git vala itstool gtk-doc libxslt python-setuptools git)
run=(gsettings-desktop-schemas desktop-file-utils gtk-update-icon-cache libgedit-amtk libgedit-tepl)

description="A text editor for GNOME"
url="http://www.gnome.org/"

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

name=gedit
version=50.0
release=1

set=(gnome3)

source=(https://gitlab.gnome.org/World/gedit/gedit/-/archive/${version}/${name}-${version}.tar.gz)

prepare() {
  cd $name-$version/subprojects/libgd
  git clone https://gitlab.gnome.org/GNOME/libgd .
}

build() {

  mkdir build && cd build

  meson --prefix=/usr \
    --libdir=/usr/lib \
    --buildtype=release \
    ../$name-$version
        
  ninja
  DESTDIR=$PKG ninja install
}
