1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
6 pkgdesc="A library that helps you create bindings between C++ and Lua, compiled as C++ instead of C"
8 url="http://www.rasterbar.com/products/luabind.html"
10 makedepends=('unzip' 'boost' 'boost-build')
13 depends=('lua-c++>=5.1')
14 source=(http://downloads.sourceforge.net/luabind/luabind-${pkgver}.tar.gz)
15 md5sums=('cf7f0e9dc4c578d670d5b851e624c4d6')
18 cd ${srcdir}/luabind-${pkgver}/ || return 1
21 sed -e 's/{//g' -e 's/}//g' -e 's/extern "C"//g' < luabind/lua_include.hpp > luabind/lua_include.hpp.patched
22 mv luabind/lua_include.hpp.patched luabind/lua_include.hpp
25 bjam release --prefix=${pkgdir}/usr/ link=static,shared install || return 1
28 install -Dm644 ${srcdir}/luabind-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/luabind/LICENSE