# Contributor: Joel Schaerer # Maintainer: Stefan Husmann pkgname=textext-hg pkgver=r328.0a13899d53f0 pkgrel=1 pkgdesc="An inkscape extension which lets you add LaTeX equations to your drawings" arch=('any') license=('custom:BSD') url="https://bitbucket.org/pitgarbe/textext" provides=('textext') conflicts=('textext') makedepends=('mercurial') depends=('inkscape' 'python2' 'texlive-core') optdepends=('pygtk' 'python2-lxml' 'pdf2svg' 'pstoedit' 'ghostscript' 'imagemagick') source=("textext::hg+https://bitbucket.org/pitgarbe/textext") md5sums=('SKIP') prepare() { cd textext/ sed -i '1s|python\>|python2|' *.py } pkgver() { cd textext printf "r%s.%s" "$(hg identify -n|tr -d +)" "$(hg identify -i|tr -d +)" } package() { cd textext/ 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 install -d "$pkgdir"/usr/share/licenses/$pkgname install LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt }