1 # Maintainer: Christoph Drexler <chrdr at gmx dot at>
2 # Contributor: Jelle van der Waa <jellevdwaa@gmail.com>
8 pkgdesc="Brainstorming and Mind Mapping Software"
10 [ "${CARCH}" = "i686" ] && _arch="i386"
11 [ "${CARCH}" = "x86_64" ] && _arch="amd64"
12 url="http://www.xmind.net"
13 license=('EPL' 'LGPL')
14 depends=('java-runtime' 'shared-mime-info')
15 optdepends=('lame: needed for some features')
17 source=(http://dl2.xmind.net/xmind-downloads/${pkgname}-${pkgver}.${_pkgdate}_${_arch}.deb)
18 [ "${CARCH}" = "i686" ] && md5sums=('8ffdf95dd1dfd5d37b5190562f2768a1')
19 [ "${CARCH}" = "x86_64" ] && md5sums=('d08060971bd6eb3531024e81950eee52')
23 ar x ${pkgname}-${pkgver}.${_pkgdate}_${_arch}.deb
24 bsdtar -xf data.tar.gz
28 install -d ${pkgdir}/usr/share/xmind/
29 cp -a ${srcdir}/usr/local/xmind/ ${pkgdir}/usr/share/
30 cp -a ${srcdir}/usr/share/ ${pkgdir}/usr/
31 install -d ${pkgdir}/usr/bin/
33 ln -s ../../usr/share/xmind/xmind .
35 # getting the config files to the right place...
36 install -d ${pkgdir}/etc/xmind/
37 mv ${pkgdir}/usr/share/xmind/configuration/* \
39 cd ${pkgdir}/usr/share/xmind/configuration/
40 ln -s ../../../../etc/xmind/* .
41 mv ${pkgdir}/usr/share/xmind/xmind-bin.ini \
44 ln -s ../../../etc/xmind/xmind-bin.ini .
46 # putting the png file where it belongs to
47 install -d ${pkgdir}/usr/share/pixmaps/
48 mv ${pkgdir}/usr/share/xmind/xmind-logo-36.png \
49 ${pkgdir}/usr/share/pixmaps/xmind.png
50 sed -i s!Exec=.*!Exec=/usr/share/xmind/xmind! \
51 ${pkgdir}/usr/share/applications/xmind.desktop
52 sed -i s!/usr/local/xmind/xmind-logo-36.png!xmind.png! \
53 ${pkgdir}/usr/share/applications/xmind.desktop