# $Id: PKGBUILD 136689 2015-07-11 02:08:59Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Christoph Drexler <chrdr at gmx dot at>
# Contributor: Jelle van der Waa <jellevdwaa@gmail.com>

pkgname=xmind
pkgver=3.5.3
_pkgdate=201506180105
pkgrel=1
pkgdesc="Brainstorming and Mind Mapping Software"
arch=('i686' 'x86_64')
url="http://www.xmind.net"
license=('EPL' 'LGPL')
depends=('desktop-file-utils' 'fontconfig' 'libxrender' 'java-runtime' 'shared-mime-info' 'libxext')
optdepends=('lame: needed for the feature audio notes')
install=xmind.install
source_i686=("http://dl2.xmind.net/xmind-downloads/${pkgname}-linux-${pkgver}.${_pkgdate}_i386.deb")
source_x86_64=("http://dl2.xmind.net/xmind-downloads/${pkgname}-linux-${pkgver}.${_pkgdate}_amd64.deb")
sha512sums_i686=('a6d51ab84fe5ab4a0c4271a27c6392f3655a94f43434a28b63eece7a430a92fdb92e26a796a2b81aa5ff51ee5818332407588b302ca46875415568d5e6e7e8c4')
sha512sums_x86_64=('1f019b22d7332e5b6d1dfad883a82e7e29a64e3ac29a7d3cd8d2662cd47fff692c6691715d9d5e418c34531760e40f74396ded290a15dcea4e334cb7749eb10f')

build() {
  if [[ "$CARCH" == "i686" ]]; then
    ar x "${pkgname}-linux-${pkgver}.${_pkgdate}_i386.deb"
  else
    ar x "${pkgname}-linux-${pkgver}.${_pkgdate}_amd64.deb"
  fi
}

package() {
  bsdtar -xf data.tar.gz -C "$pkgdir"
}
