blob: 8c31d8b3fd95a5376d0b6a0f348649b3ac2af43e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Contributor: Joel Schaerer <joel.schaerer@laposte.net>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
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
}
|