SHARE
TWEET

svg2tikz-git PKGBUILD

a guest May 14th, 2015 242 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
  2. # Contributor: max_meyer <dev@fedux.org>
  3.  
  4. pkgname=svg2tikz-git
  5. pkgver=r197.e8a16de
  6. pkgrel=1
  7. pkgdesc="An Inkscape extension for exporting SVG paths as TikZ/PGF paths."
  8. arch=('any')
  9. url="https://github.com/kjellmf/svg2tikz"
  10. license=('GPL')
  11. depends=('python2-lxml')
  12. optdepends=('inkscape: for using the inksape extension files')
  13. makedepends=('git')
  14. provides=('inkscape-tikz')
  15. conflicts=('inkscape-tikz')
  16. source=('svg2tikz::git+https://github.com/kjellmf/svg2tikz.git')
  17. md5sums=('SKIP')
  18.  
  19. pkgver() {
  20.   cd "$srcdir/svg2tikz"
  21.   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  22. }
  23.  
  24. prepare() {
  25.   cd "$srcdir/svg2tikz"
  26.  
  27.   for _i in inkexlib/inkex.py inkexlib/simplepath.py inkexlib/simplestyle.py \
  28.     extensions/tikz_export.py extensions/tikz_export.py
  29.   do
  30.     sed -i '1s+python+python2+' svg2tikz/${_i}
  31.   done
  32. }
  33.  
  34. package() {
  35.   cd "$srcdir/svg2tikz"
  36.   python2 setup.py install --root="$pkgdir/" --optimize=1
  37.  
  38.   _inkscape_ext="$pkgdir/usr/share/inkscape/extensions"
  39.   install -d "$_inkscape_ext"
  40.   cp ./svg2tikz/extensions/tikz_export* "$_inkscape_ext"
  41. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top