blob: 8e586c7985e305ddb765f6b7c4280c72a7ff9950 (
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-git
pkgver=1.2.0
epoch=1
pkgrel=2
pkgdesc="An inkscape extension which lets you add LaTeX equations to your drawings"
arch=('any')
license=('custom:BSD')
url="https://github.com/textext/textext.git"
provides=('textext')
conflicts=('textext')
makedepends=('git')
depends=('inkscape' 'python-gobject' 'texlive-core')
source=("git+$url")
md5sums=('SKIP')
pkgver() {
cd ${pkgname%-git}
git describe --tags |tr - .
}
package() {
cd ${pkgname%-git}
python setup.py --inkscape-extensions-path="$pkgdir"/usr/share/inkscape/extensions/
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
rm -rf "$pkgdir/usr/share/inkscape/extensions/textext/__pycache__"
}
|