1 # Maintainer: Your Name <youremail@domain.com>
2 pkgname=inkscape-tikz-hg
5 pkgdesc="An Inkscape extension for exporting SVG paths as TikZ/PGF paths."
7 url="http://code.google.com/p/inkscape2tikz/"
9 depends=('python' 'inkscape')
10 makedepends=('mercurial')
11 provides=(inkscape-tikz)
15 md5sums=() #generate with 'makepkg -g'
17 _hgroot=https://code.google.com/p
22 msg "Connecting to Mercurial server...."
24 if [[ -d "$_hgrepo" ]]; then
27 msg "The local files are updated."
29 hg clone "$_hgroot" "$_hgrepo"
32 msg "Mercurial checkout done or server timeout"
33 msg "Starting build..."
35 rm -rf "$srcdir/$_hgrepo-build"
36 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
37 cd "$srcdir/$_hgrepo" && ls -A | grep -v .hg | xargs -d '\n' cp -r -t ../$_hgrepo-build
38 cd "$srcdir/$_hgrepo-build"
40 python2.7 setup.py install --root="$pkgdir/" --optimize=1
42 #_inkscape_ext="$pkgdir/usr/share/inkscape/extensions/$_hgrepo"
43 _inkscape_ext="$pkgdir/usr/share/inkscape/extensions"
44 mkdir -p "$_inkscape_ext"
45 cp ./svg2tikz/extensions/tikz_export* "$_inkscape_ext"
48 # vim:set ts=2 sw=2 et: