summaryrefslogtreecommitdiff
path: root/community/jogl/PKGBUILD
blob: fc3388cfa85dc9c25605e7181570e9f2d7842217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Simon Lipp <sloonz+aur@gmail.com>

pkgname=jogl
pkgver=1.1.1
pkgrel=6
pkgdesc="OpenGL bindings for java"
arch=('i686' 'x86_64' 'mips64el')
url="http://jogl.dev.java.net/"
license=('custom')
depends=('java-runtime' 'libgl')

if [ "$CARCH" = "i686" ]; then
	source=('http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1/jogl-1.1.1-linux-i586.zip')
	md5sums=('74d131fc1c1130d09109887679dbf044')
else
	source=('http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1/jogl-1.1.1-linux-amd64.zip')
	md5sums=('efe0beb352cfb31f3a32d8d7f56fcce3')
fi

build() {
	install -d $pkgdir/usr/share/java/jogl/ || return 1
	install -d $pkgdir/usr/share/licenses/$pkgname || return 1
	install -d $pkgdir/usr/lib || return 1
	install --mode=644 $srcdir/jogl-*/lib/jogl.jar \
	  $pkgdir/usr/share/java/jogl/ || return 1
	install --mode=644 $srcdir/jogl-*/lib/gluegen-rt.jar \
	  $pkgdir/usr/share/java/jogl/ || return 1
	install --mode=644 $srcdir/jogl-*/LICENSE-JOGL-*.txt \
	  $pkgdir/usr/share/licenses/$pkgname || return 1
	install --mode=644 $srcdir/jogl-*/lib/libgluegen-rt.so \
	  $pkgdir/usr/lib/ || return 1
	install --mode=644 $srcdir/jogl-*/lib/libjogl.so \
	  $pkgdir/usr/lib/ || return 1
	install --mode=644 $srcdir/jogl-*/lib/libjogl_awt.so \
	  $pkgdir/usr/lib/ || return 1
}