# $Id: PKGBUILD 127126 2015-02-04 16:28:56Z arojas $
# Maintainer: Antonio Rojas < arojas@archlinux.org >

pkgname=libreoffice-extension-texmaths
_extname=texmaths
pkgver=0.41
pkgrel=2
pkgdesc="A LaTeX equation editor for LibreOffice"
arch=('any')
url="http://roland65.free.fr/texmaths/"
license=('GPL2')
depends=('libreoffice' 'texlive-core')
conflicts=('texmaths')
replaces=('texmaths')
source=("http://downloads.sourceforge.net/project/$_extname/$pkgver/TexMaths-$pkgver.oxt")
md5sums=('7d00b8443d61348a14511bf82f28ff25')

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
}
