1 # Contributor: Dwight Schauer <dschauer@gmail.com>
5 _libname=cinvoke_lua.so
6 _libname64=cinvoke_lua64.so
10 pkgdesc="Library for connecting Lua to C libraries at runtime"
11 arch=('i686' 'x86_64')
12 url="https://bitbucket.org/bogen/cinvoke"
17 source=(https://bitbucket.org/bogen/${_pkgname}/get/${pkgver}.tar.gz)
22 echo "building 32 bit integer lua binding"
23 perl configure.pl --prefix=/usr || true
25 make -C bindings/lua || return 1
26 install -D -m644 bindings/lua/${_libname} ${pkgdir}/usr/lib/lua/${_luaver}/${_libname} || return 1
28 echo "cleaning between builds"
29 make clean || return 1
30 make -C bindings/lua clean || return 1
32 echo "building 64 bit integer lua binding"
33 export LNUM_INT64="TRUE"
34 perl configure.pl --prefix=/usr || true
36 make -C bindings/lua || return 1
37 install -D -m644 bindings/lua/${_libname} ${pkgdir}/usr/lib/lua/${_luaver}/${_libname64} || return 1
40 sha256sums=('48d9f471a4902c432b0d312926cc2e567bd84d7e657854e20b0bbbbd25bf7345')