updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / worldwind / PKGBUILD
blobf6ad2f5fcb89bafa94286c83b0e20e06f2806752
1 # Maintainer: Garrett <floft.net/contact>
2 pkgname=worldwind
3 pkgver=0.5.0
4 pkgrel=5
5 pkgdesc="Open 3D earth viewer with GPS support"
6 url="http://sourceforge.net/projects/nasa-exp/"
7 license=('custom')
8 arch=('i686' 'x86_64')
9 depends=('jogl')
10 optdepends=('libtxc_dxtn: radeon and nouveau support')
11 makedepends=()
12 source=(license.txt http://downloads.sourceforge.net/project/nasa-exp/World%20Wind%20Java/$pkgver/worldwind-release.$pkgver.zip)
13 md5sums=('bf7da6334b8860f18e5496085388f46f' '6efb29a4720c98503bcabb18810f7d2b')
15 build() {
16         cd "$srcdir"
17         cat > worldwind <<EOF
18 #!/bin/bash
19 cd '/usr/share/worldwind/';
20 java -Xmx512m -Dsun.java2d.noddraw=true -classpath ./src:./classes:./worldwind.jar:./jogl.jar:./gluegen-rt.jar gov.nasa.worldwind.examples.ApplicationTemplate
21 EOF
22         mkdir -p "$pkgdir/usr/share/worldwind/"
23         cp -r *  "$pkgdir/usr/share/worldwind"
25         mkdir -p "$pkgdir/usr/bin/"
26         install -Dm755 worldwind "$pkgdir/usr/bin/"
28         install -Dm644 "$srcdir/license.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"