updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ipe / PKGBUILD
blobf97cbaa791024281bcfb0bb0921ba3369b0b10a4
1 #Maintainer: Dmitriy Morozov <archlinux@foxcub.org>
3 pkgname=ipe
4 _sfproject=ipe7
5 _dirver=7.1.0
6 pkgver=7.1.2
7 pkgrel=1
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')
12 license=("GPL")
13 conflicts=('ipe')
14 ftiversion_=20091205
15 ptiversion_=20110916
16 stiversion_=20100608
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
23         ipe.bash-completion
24         svgtoipe-python2.patch
25         poppler.diff
26         config.patch)
27 md5sums=('887f65359d60e184a446cbe77def5176'
28          'a19e0712df137939c37c194b551da6b8'
29          '3835546c22c50b84f1e6ea5f9fd5a9e0'
30          'da05b41f9ce7be0f0dbd14c5ffe08e45'
31          '25e7051ceb1286ccc7adf019793338b9'
32          '694f0d5402655901be385647e5d8d6e3'
33          '967a191ca673aec93546640002c794ab'
34          '3256b03cf62cbfb40af132154f78f88b'
35          '3fba567aae59b9c7224a8cf8364176f3')
37 build() {
38  # Build Ipe
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
45  make IPEPREFIX=/usr
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
51  # make || return 1
52  # INSTALL_ROOT=$pkgdir make install
54  # Build figtoipe
55  cd $srcdir/figtoipe-$ftiversion_
56  make
57  install -m 755 figtoipe $pkgdir/usr/bin
59  # Build pdftoipe
60  cd $srcdir/pdftoipe-$ptiversion_-src
61  patch < $srcdir/poppler.diff
62  make
63  install -m 755 pdftoipe $pkgdir/usr/bin
65  # Copy svgtoipe
66  cd $srcdir/svgtoipe-$stiversion_
67  patch svgtoipe < $srcdir/svgtoipe-python2.patch
68  install -m 755 svgtoipe $pkgdir/usr/bin
70  # Build IpePresenter
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" \
74  make
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
84