spacepaste

  1.  
  2. # Maintainer: Splex
  3. pkgname=inkscape-bzr
  4. pkgver=11519
  5. pkgrel=1
  6. pkgdesc="An Open Source vector graphics editor, with capabilities similar to Illustrator, CorelDraw, or Xara X, using the W3C standard Scalable Vector Graphics (SVG) file format."
  7. url="https://launchpad.net/inkscape"
  8. arch=('i686' 'x86_64')
  9. license=('GPL' 'LGPL')
  10. depends=('gc' 'gtkmm' 'poppler-glib' 'pyxml' 'libxslt' 'gsl' 'popt' 'python2'
  11. 'gtkspell' 'imagemagick' 'desktop-file-utils' 'hicolor-icon-theme')
  12. optdepends=('python2-numpy: some extensions'
  13. 'python-lxml: some extensions and filters'
  14. 'uniconvertor: reading/writing to some proprietary formats')
  15. makedepends=('boost' 'pkg-config' 'intltool' 'bzr' 'gettext' 'autoconf')
  16. provides=('inkscape')
  17. conflicts=('inkscape')
  18. options=('!libtool')
  19. source=()
  20. md5sums=()
  21. install=inkscape-bzr.install
  22. _bzrtrunk="lp:inkscape"
  23. _bzrmod="inkscape"
  24. build() {
  25. cd "$srcdir"
  26. msg "Connecting to Bazaar server...."
  27. if [ -d $_bzrmod ] ; then
  28. cd ${_bzrmod} && bzr pull ${_bzrtrunk} -r ${pkgver}
  29. msg "The local files are updated."
  30. else
  31. bzr branch ${_bzrtrunk} ${_bzrmod} -r ${pkgver}
  32. fi
  33. msg "Bazaar checkout done or server timeout"
  34. msg "Starting make..."
  35. rm -rf "$srcdir/$_bzrmod-build"
  36. cp -r "$srcdir/$_bzrmod" "$srcdir/$_bzrmod-build"
  37. cd "$srcdir/$_bzrmod-build"
  38. ./autogen.sh
  39. ./configure --prefix=/usr \
  40. --with-python \
  41. --with-perl \
  42. --without-gnome-vfs \
  43. --enable-lcms \
  44. --enable-poppler-cairo \
  45. --disable-dependency-tracking
  46. # fix for inkscape to use python2 with the python 3 package installed.
  47. sed -i 's|/usr/bin/python\>|/usr/bin/python2|g' cxxtest/*.py
  48. sed -i 's|/usr/bin/env python\>|/usr/bin/env python2|g' share/*/{test/,}*.py
  49. sed -i 's|"python" },|"python2" },|g' src/extension/implementation/script.cpp
  50. sed -i 's|python -c |python2 -c|g' configure share/extensions/uniconv*.py
  51. sed -i 's|"python"|"python2"|g' src/main.cpp
  52. make
  53. }
  54. package() {
  55. cd "$srcdir/$_bzrmod-build"
  56. make DESTDIR=$pkgdir install
  57. }
  58.