updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / sunflow / PKGBUILD
blob978dc1c32970bb29d9b63d2274dbb5108cb332f6
1 # Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
2 pkgname=sunflow
3 pkgver=0.07.2
4 pkgrel=10
5 pkgdesc="Global illumination rendering system"
6 arch=('i686' 'x86_64')
7 url="http://sunflow.sourceforge.net/"
8 depends=('java-runtime')
9 makedepends=('subversion')
10 license=('MIT')
11 install=sunflow.install
12 source=(http://downloads.sourceforge.net/sourceforge/sunflow/$pkgname-bin-v$pkgver.zip \
13         sunflow.sh sunflow.desktop sunflow.png)
14 md5sums=('5806cafff80db23c275203589ce2f5d4'
15          '3d2b099be4bac57e8db94aed51c87457'
16          '7c0cb3b5d6ee66086d84a3cc66ac3768'
17          '810ed7db16faa6d11c9b1978e4aca39b')
19 build() {
20   cd "$srcdir"
21   svn co https://sunflow.svn.sourceforge.net/svnroot/sunflow/trunk/exporters/blender .
23   cd "$srcdir"/$pkgname
25   mkdir -p "$pkgdir"/usr/share/java/$pkgname
26   install -m644 {janino,sunflow}.jar "$pkgdir"/usr/share/java/$pkgname
27   
28   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
29   install -D -m644 "$srcdir"/sunflow_export.py "$pkgdir"/usr/share/blender/scripts/sunflow_export.py
30   install -D -m755 "$srcdir"/$pkgname.sh "$pkgdir"/usr/bin/$pkgname
31   install -D -m644 "$srcdir"/$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
32   install -D -m644 "$srcdir"/$pkgname.png "$pkgdir"/usr/share/pixmaps/$pkgname.png