1 # Contributor: Piotr Sobiech <sobiech at wredny dot net>
6 pkgdesc="Provides developers access to high performance crossplatform libraries such as OpenGL and OpenAL allowing for state of the art 3D games and 3D sound. All in a simple and straight forward API."
7 #i686 should work, report to me if it dosen't
9 url="http://lwjgl.org/"
11 conflicts=('jinput' 'lwjgl')
12 #libxxf86vm is already a dependency of libgl
13 depends=('java-runtime>=5' 'openal' 'libgl')
14 makedepends=('apache-ant>=1.4.1' 'subversion' 'libxxf86vm-static')
15 provides=('jinput' 'lwjgl')
16 install=${pkgname}.install
20 _svntrunk="https://java-game-lib.svn.sourceforge.net/svnroot/java-game-lib/trunk/LWJGL"
25 msg "Connecting to SVN server...."
26 if [ -d ${_svnmod}/.svn ]; then
27 (cd ${_svnmod} && svn up -r ${pkgver})
29 svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
32 msg "SVN checkout done or server timeout"
33 msg "Starting make..."
34 svn export --force ${_svnmod} ${_svnmod}-build
40 ant generate-all || return 1
41 ant compile || return 1
42 ant compile_native || return 1
44 if [ "$CARCH" = "i686" ]; then
45 #should work, i686 is not tested much though, check System.getProperty("java.library.path"); in java to know the path for sure
46 install -d -m755 "${pkgdir}/usr/java/packages/lib/i386"
47 install -m644 ./libs/linux/libjinput-linux.so "${pkgdir}/usr/java/packages/lib/i386/" || return 1
48 install -m644 ./libs/linux/libopenal.so "${pkgdir}/usr/java/packages/lib/i386/" || return 1
49 install -m644 ./libs/linux/liblwjgl.so "${pkgdir}/usr/java/packages/lib/i386/" || return 1
51 install -d -m755 "${pkgdir}/usr/java/packages/lib/amd64"
52 install -m644 ./libs/linux/libjinput-linux64.so "${pkgdir}/usr/java/packages/lib/amd64/" || return 1
53 install -m644 ./libs/linux/libopenal64.so "${pkgdir}/usr/java/packages/lib/amd64/" || return 1
54 install -m644 ./libs/linux/liblwjgl64.so "${pkgdir}/usr/java/packages/lib/amd64/" || return 1
59 install -d -m755 "${pkgdir}${JAVA_HOME}/jre/lib/ext"
60 install -m644 ./libs/jinput.jar "${pkgdir}${JAVA_HOME}/jre/lib/ext" || return 1
61 install -m644 ./libs/lwjgl.jar "${pkgdir}${JAVA_HOME}/jre/lib/ext" || return 1
62 install -m644 ./libs/lwjgl_test.jar "${pkgdir}${JAVA_HOME}/jre/lib/ext" || return 1
63 install -m644 ./libs/lwjgl_util.jar "${pkgdir}${JAVA_HOME}/jre/lib/ext" || return 1
64 install -m644 ./libs/lwjgl_util_applet.jar "${pkgdir}${JAVA_HOME}/jre/lib/ext" || return 1
68 install -d -m755 "${pkgdir}/usr/share/java/lwjgl/javadoc/"
69 mv ./doc/javadoc/* "${pkgdir}/usr/share/java/lwjgl/javadoc/"
71 install -d -m755 "${pkgdir}/usr/share/licenses/${_pkgname}"
72 install -m644 ./doc/LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/" || return 1
73 install -m644 ./doc/3rdparty/jinput_license.txt "${pkgdir}/usr/share/licenses/${_pkgname}/" || return 1
75 # vim:set ts=2 sw=2 et: