# Maintainer: Antonio Rojas < arojas@archlinux.org >

pkgname=libreoffice-extension-texmaths
_extname=texmaths
pkgver=0.49
pkgrel=1
pkgdesc="A LaTeX equation editor for LibreOffice"
arch=(any)
url="http://roland65.free.fr/texmaths/"
license=(GPL2)
depends=(libreoffice texlive-core)
source=("https://downloads.sourceforge.net/project/$_extname/$pkgver/TexMaths-$pkgver.oxt")
sha256sums=('5869f4f8d4dc82351636927518aa8baf56bd40da165fe2a18ad4271cc1311a72')

package() {
  install -d -m755 "$pkgdir"/usr/lib/libreoffice/share/extensions/$_extname

  cp -r * "$pkgdir"/usr/lib/libreoffice/share/extensions/$_extname
  rm "$pkgdir"/usr/lib/libreoffice/share/extensions/$_extname/*.oxt
}
