# Maintainer: Guillaume Hayot <ghayot@postblue.info>
# Contributor: Guillaume Hayot <ghayot@postblue.info>
pkgname=parlatype-libreoffice-extension
pkgver=4.3
pkgrel=1
pkgdesc="Parlatype LibreOffice Extension"
arch=('any')
url="https://github.com/gkarsay/parlatype-libreoffice-extension/"
license=('GPL3')
depends=('libreoffice' 'parlatype')
makedepends=('meson' 'gettext' 'appstream' 'appstream-glib')
source=("https://github.com/gkarsay/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")
b2sums=('c12a81ca756acfc0d965dc5d6205d864630dbaa5ec126921f3e674507ff1ead5fa67f970745158ce1b4631ada8f17ca853d1fc2e4e10360ad21a4d3e834054fd')

build() {
  cd "$pkgname-$pkgver"
  arch-meson build -Dbundled=true
  cd build
  ninja
}

package() {
  cd "$pkgname-$pkgver"/build
  DESTDIR="$pkgdir/" ninja install
}
