# Contributor: giacomogiorgianni@gmail.com
# Contributor: Márcio Silva <coadde@hyperbola.info>
# Maintainer: Parabola Hackers <dev@lists.parabola.nu>

# parabola changes and rationale:
#  - adapted from blender26-ogre-exporter
#  - added replaces for previous pkgname 'blender-addon-ogre' (2018-02-01)
#  - added replaces for previous pkgname 'blender26-ogre-exporter' (2018-02-01)
#  - fixed arch array
#  - renamed build function to package
#  - updated to new remote
#  - added makedepends: git

pkgname=blender26-ogre-exporter
_name=blender2ogre
pkgver=0.7
pkgrel=1
pkgdesc="Blender-integrated exporter for exporting OGRE meshes"
arch=('any')
url="http://www.ogre3d.org/wiki/index.php/OGRE_Meshes_Exporter"
depends=('python' 'blender' 'ogre')
makedepends=('git')
replaces=('blender-addon-ogre' 'blender26-ogre-exporter')
license=('GPL')
install=blender-ogre-exporter.install
source=("$pkgname-$pkgver.tar.gz::https://github.com/OGRECave/$_name/archive/v$pkgver.tar.gz")
md5sums=('0f33c7b95f818cce49dd35b38a00e971')

package() {
	mkdir -p ${pkgdir}/usr/share/blender/2.78/scripts/addons/
	cp -r ${srcdir}/$_name-$pkgver/io_ogre ${pkgdir}/usr/share/blender/2.78/scripts/addons/
}

