# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Tobias Bohrmann (PlainTextField) <honeypot.carbage@aechelon.de>
# Contributor: Bernd Prünster (JesusMcCloud) <aur@berndpruenster.org>

pkgname=gnome-latex
pkgver=3.32.0
pkgrel=1
pkgdesc="LaTeX editor for the GNOME desktop"
arch=(x86_64)
url="https://wiki.gnome.org/Apps/GNOME-LaTeX"
license=(GPL3)
depends=(gsettings-desktop-schemas gspell libgee tepl)
makedepends=(gobject-introspection intltool itstool vala)
optdepends=('texlive-core: build LaTeX documents')
replaces=(latexila)
source=("https://download.gnome.org/sources/gnome-latex/${pkgver%.*}/$pkgname-$pkgver.tar.xz")
sha256sums=('0f069c7b4c6754255a1c7e3e3b050925d8076f55458526a30ab59e0a7d52acc9')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
