updated on Tue Jan 10 00:10:07 UTC 2012
[aur-mirror.git] / inkscape-tikz-hg / PKGBUILD
blob2639a39d0636ca2beee6a20a0a52f33399a31d67
1 # Maintainer: Your Name <youremail@domain.com>
2 pkgname=inkscape-tikz-hg
3 pkgver=114
4 pkgrel=1
5 pkgdesc="An Inkscape extension for exporting SVG paths as TikZ/PGF paths."
6 arch=(any)
7 url="http://code.google.com/p/inkscape2tikz/"
8 license=('GPL')
9 depends=('python' 'inkscape')
10 makedepends=('mercurial')
11 provides=(inkscape-tikz)
12 install=
13 source=()
14 noextract=()
15 md5sums=() #generate with 'makepkg -g'
17 _hgroot=https://code.google.com/p
18 _hgrepo=inkscape2tikz
20 package() {
21   cd "$srcdir"
22   msg "Connecting to Mercurial server...."
24   if [[ -d "$_hgrepo" ]]; then
25     cd "$_hgrepo"
26     hg pull -u
27     msg "The local files are updated."
28   else
29     hg clone "$_hgroot" "$_hgrepo"
30   fi
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: