# $Id: PKGBUILD 123362 2014-12-02 17:34:03Z 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.1
_pkgdate=201411201906
pkgrel=1
pkgdesc="Brainstorming and Mind Mapping Software"
arch=('i686' 'x86_64')
[ "${CARCH}" = "i686" ] && _arch="i386"
[ "${CARCH}" = "x86_64" ] && _arch="amd64"
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=(http://dl2.xmind.net/xmind-downloads/${pkgname}-linux-${pkgver}.${_pkgdate}_${_arch}.deb)
[ "${CARCH}" = "i686" ] && sha512sums=('1229a15597deda7b35a0c304a0dd9a066c6c51291f0cb144d8c57f2637dd67030547f5f940922b5c3cc0adf4320ff27cdbc4ae26bb55019ab8a797122039be13')
[ "${CARCH}" = "x86_64" ] && sha512sums=('0c989272eea261381797d9781ed6c1439fd40758bb716ed854be4a8d6e696c9ac55994ac888f31536584a3747c719e4d9cb4a9e81efd7b115b7c912de1e11de0')

build() {
  ar x "${pkgname}-linux-${pkgver}.${_pkgdate}_${_arch}.deb"
}

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