1 # Maintainer: Davorin Učakar <davorin.ucakar@gmail.com>
2 # Maintainer: Juergen Hoetzel <juergen@archlinux.org>
3 # Contributor: Damir Perisa <damir.perisa@bluewin.ch>
9 pkgdesc="A powerful light-weight programming language designed for extending applications"
11 url="http://www.lua.org/"
12 depends=('lib32-glibc')
13 makedepends=('lib32-readline')
15 options=('!makeflags' '!emptydirs')
16 source=(http://www.lua.org/ftp/lua-${pkgver}.tar.gz
17 http://www.lua.org/ftp/patch-lua-${_patchver}
19 md5sums=('d0870f2de55d59c1c8419f36e8fac150'
20 '329d8695e3e6f1267190e220559f7b6c'
21 '6c5953f63904bf20a0183cdab05b80de')
24 cd "${srcdir}/lua-${pkgver}"
25 patch -p0 -i "${srcdir}/patch-lua-${_patchver}" -d src
26 patch -p1 -i "${srcdir}/lua-arch.patch"
27 CFLAGS="$CFLAGS -O2 -m32" LDFLAGS="$LDFLAGS -O2 -m32"
28 make INSTALL_DATA="cp -d" TO_LIB="liblua.a liblua.so liblua.so.5.1" LUA_SO=liblua.so \
29 INSTALL_TOP="${pkgdir}/usr" CFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux
33 cd "${srcdir}/lua-${pkgver}"
34 make INSTALL_DATA="cp -d" TO_LIB="liblua.a liblua.so liblua.so.5.1" LUA_SO=liblua.so \
35 INSTALL_TOP="${pkgdir}/usr" install
36 rm -rf ${pkgdir}/usr/{bin,include,man}
37 mv ${pkgdir}/usr/lib ${pkgdir}/usr/lib32