# Contributor: Joel Schaerer # Maintainer: Stefan Husmann pkgname=textext _pkgname=TexText pkgver=0.7.1 pkgrel=1 pkgdesc="An inkscape extension which lets you add LaTeX equations to your drawings" arch=('any') license=('custom:BSD') url="http://pav.iki.fi/software/textext/" depends=('inkscape' 'texlive-core' 'python2') optdepends=('pdf2svg' 'pygtk') source=("$pkgname-$pkgver.tar.gz::https://github.com/textext/textext/releases/download/$pkgver/${_pkgname}-Linux-$pkgver.tgz") sha256sums=('5f409bec9bdeb9ab2eff9d8608d518f7f1156cfcc187caef9638371b5c2a9bbb') prepare() { sed -i '1s|python\>|python2|' $pkgname-$pkgver-linux/extension/textext.py } package() { cd $pkgname-$pkgver-linux/extension install -d "$pkgdir"/usr/share/inkscape/extensions for _i in asktext.py default_packages.tex latexlogparser.py textext.{inx,py} typesetter.py win_app_paths.py do install ${_i} "$pkgdir"/usr/share/inkscape/extensions/$_i done cd .. install -d "$pkgdir"/usr/share/licenses/$pkgname install LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt }