updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / luagl-bin / PKGBUILD
blobec0e4a5c0cf6208a63064d8376282fd651fdb315
1 pkgname=luagl-bin
2 pkgver=1.6
3 pkgrel=4
4 pkgdesc="LuaGL is a library that provides access to all of the OpenGL funcionality from Lua script language."
5 url="http://luagl.sourceforge.net"
6 depends=('lua' 'glut')
7 arch=('i686' 'x86_64')
8 license="MIT"
9 [ "${CARCH}" = 'x86_64' ] && _arch='_64'
10 source=("http://downloads.sourceforge.net/project/luagl/1.6/luagl-1.6_Linux26g4${_arch}_lib.tar.gz?r=&ts=1294592325&use_mirror=mesh")
11 md5sums=('69cd839a4f89d66f40766e95d670d3fb')
12 [ "${CARCH}" = 'x86_64' ] && md5sums=('b7de99f7f1e0d3b9126854b7422b7015')
14 build() {
15         cd "$srcdir"
16         install -Dm755 libluagl.a $pkgdir/usr/lib/lua/5.1/luagl.a
17         install -Dm755 libluagl.so $pkgdir/usr/lib/lua/5.1/luagl.so
18         install -Dm755 libluaglu.a $pkgdir/usr/lib/lua/5.1/luaglu.a
19         install -Dm755 libluaglu.so $pkgdir/usr/lib/lua/5.1/luaglu.so
20         
21         install -Dm644 include/luagl.h $pkgdir/usr/include/luagl.h
22         install -Dm644 include/luaglu.h $pkgdir/usr/include/luaglu.h
23         
24         cd $pkgdir/usr/lib/
25         ln -s lua/5.1/luagl.so libluagl.so
26         }