1 # $Id: PKGBUILD 86292 2010-07-28 06:43:46Z juergen $
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. (Patched to support 64 bit integers)"
10 arch=('i686' 'x86_64')
11 url="http://www.lua.org/"
12 depends=('readline' 'ncurses')
16 options=('!makeflags')
18 http://www.lua.org/ftp/${_pkgname}-${pkgver}.tar.gz
19 http://www.lua.org/ftp/patch-lua-5.1.4-2
22 http://luaforge.net/frs/download.php/4037/lua514-lnum-20090417.patch.tgz
27 cd "${srcdir}/${_pkgname}-${pkgver}"
29 patch -p1 -i ${srcdir}/lua514-lnum-20090417.patch
31 patch -p1 -i "${srcdir}/lua-arch.patch"
33 patch -i ${srcdir}/patch-lua-5.1.4-2 -d src
35 patch -p0 -i ${srcdir}/ltable.patch
39 cd "${srcdir}/${_pkgname}-${pkgver}"
42 patch -Np1 -i ${srcdir}/lua-5.1-cflags.diff
43 [ "$CARCH" == "x86_64" ] && export CFLAGS="$CFLAGS -fPIC"
44 make INSTALL_DATA="cp -d" TO_LIB="liblua.a liblua.so liblua.so.5.1" LUA_SO=liblua.so INSTALL_TOP="${pkgdir}/usr" INSTALL_MAN="${pkgdir}/usr/share/man/man1" \
45 linux install || return 1
46 install -D -m 644 etc/lua.pc "${pkgdir}/usr/lib/pkgconfig/lua.pc"
47 install -D -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${_pkgname}/COPYRIGHT"
49 # Install the documentation
50 mkdir -p "${pkgdir}/usr/share/doc/lua"
51 cp -R doc/* "${pkgdir}/usr/share/doc/lua"
54 sha256sums=('b038e225eaf2a5b57c9bcc35cd13aa8c6c8288ef493d52970c9545074098af3a'
55 'a7f8ca9a3be52daecb3d3c9988d08ccc2bf9f785b075a0bc6463038356a9ec4c'
56 'f1303d4b5acd5580190556f559f282d22ed316c56f7b4e3002514abc314a37b9'
57 'c6caed1c07fe80219e484c98850e1de4ff63ac1ce5664978d2c72a4bfec1b9df'
58 'b85f4965dd889e472544536bfb80b970f059109cceac63c64bf6bcf25b5a76fa'
59 'c67a834acaeab8878e2a1e27965eb68c1424242f7f1bb3019fd8d07dccd3c53c')