PKGBUILDs/community/jogl/PKGBUILD
2009-10-09 21:15:33 -05:00

37 lines
1.3 KiB
Bash

# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Simon Lipp <sloonz+aur@gmail.com>
pkgname=jogl
pkgver=1.1.1
pkgrel=5
pkgdesc="OpenGL bindings for java"
arch=('i686' 'x86_64')
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,cg}.so \
$pkgdir/usr/lib/ || return 1
}