1 #Maintainer: Dmitriy Morozov <archlinux@foxcub.org>
8 pkgdesc="The extensible drawing editor"
9 url="http://tclab.kaist.ac.kr/ipe/"
10 depends=('lua' 'qt' 'freetype2' 'zlib' 'poppler' 'python2')
11 arch=('i686' 'x86_64')
17 ipepresenter_version_=ipe-7.1.0
18 source=(http://downloads.sourceforge.net/project/$_sfproject/$pkgname/$_dirver/$pkgname-$pkgver-src.tar.gz
19 http://downloads.sourceforge.net/project/$_sfproject/tools/figtoipe-$ftiversion_.tar.gz
20 http://downloads.sourceforge.net/project/$_sfproject/tools/pdftoipe-$ptiversion_-src.tar.gz
21 http://downloads.sourceforge.net/project/$_sfproject/tools/svgtoipe-$stiversion_.tar.gz
22 http://hg.mrzv.org/IpePresenter/archive/$ipepresenter_version_.tar.gz
24 svgtoipe-python2.patch
27 md5sums=('887f65359d60e184a446cbe77def5176'
28 'a19e0712df137939c37c194b551da6b8'
29 '3835546c22c50b84f1e6ea5f9fd5a9e0'
30 'da05b41f9ce7be0f0dbd14c5ffe08e45'
31 '25e7051ceb1286ccc7adf019793338b9'
32 '694f0d5402655901be385647e5d8d6e3'
33 '967a191ca673aec93546640002c794ab'
34 '3256b03cf62cbfb40af132154f78f88b'
35 '3fba567aae59b9c7224a8cf8364176f3')
39 cd $srcdir/$pkgname-$pkgver/src
40 patch config.mak < $srcdir/config.patch
41 cd $srcdir/$pkgname-$pkgver/src
43 mkdir -p $pkgdir/usr/bin
46 INSTALL_ROOT=$pkgdir make install IPEPREFIX=/usr
48 # Make QVoronoi Ipelet
49 # cd $srcdir/$pkgname-$pkgnamever/src/ipelets/qvoronoi
50 # qmake IPEPREFIX=/usr INCLUDEPATH+=/usr/include/qhull
52 # INSTALL_ROOT=$pkgdir make install
55 cd $srcdir/figtoipe-$ftiversion_
57 install -m 755 figtoipe $pkgdir/usr/bin
60 cd $srcdir/pdftoipe-$ptiversion_-src
61 patch < $srcdir/poppler.diff
63 install -m 755 pdftoipe $pkgdir/usr/bin
66 cd $srcdir/svgtoipe-$stiversion_
67 patch svgtoipe < $srcdir/svgtoipe-python2.patch
68 install -m 755 svgtoipe $pkgdir/usr/bin
71 cd $srcdir/IpePresenter-$ipepresenter_version_
72 CPPFLAGS+=" -I ../$pkgname-$pkgver/src/include -I ../$pkgname-$pkgver/src/ipecanvas" \
73 LIBS=" -L ../$pkgname-$pkgver/build/lib" \
75 install -m 755 ipepresenter $pkgdir/usr/bin
77 # make lua binding available
78 mkdir -p $pkgdir/usr/lib/lua/5.1
79 ln -s /usr/lib/libipelua.so $pkgdir/usr/lib/lua/5.1/ipe.so
81 # install bash completion
82 mkdir -p $pkgdir/etc/bash_completion.d
83 install $srcdir/ipe.bash-completion $pkgdir/etc/bash_completion.d/ipe