### this file is sourced not run
PKGVER=2.65
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=blender-2.65-linux-glibc27-x86_64.tar.bz2
MD5SUM=833ba4bbd3bfc015c6ef2dfb5278eab6
SRC_URL=http://download.blender.org/release/Blender2.65/$TARBALL
BUNDLE=

SLACKREQ='' # 
SLACKDESC='blender: blender 2.65 (3D editor)
blender: 
blender: Blender is the free, open source 3D application for modeling, 
blender: animation, rendering, compositing, video editing and game creation.
blender: 
blender: This version is compatible with openshot 1.4.3
blender: 
blender: This package is re-packaged from official blender.org binary,
blender: not built from source.
blender: 
blender: http://www.blender.org/
'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp
	mkdir -p /opt &&
	mv blender* /opt/blender-2.65 &&
	chown -R 0:0 /opt/blender* &&
	ln -s /opt/blender-2.65/blender /usr/bin/blender265 &&
	
	# desktop file
	mkdir -p /usr/share/applications &&
	install -m644 /tmp/pkg/blender265.desktop /usr/share/applications &&
	pkg_build_slackdesc
}
