# Maintainer: Sven-Hendrik Haase pkgname=luabind-c++ pkgver=0.9 pkgrel=1 pkgdesc="A library that helps you create bindings between C++ and Lua, compiled as C++ instead of C" arch=('i686' 'x86_64') url="http://www.rasterbar.com/products/luabind.html" license=('MIT') makedepends=('unzip' 'boost' 'boost-build') conflicts=('luabind') provides=('luabind') depends=('lua-c++>=5.1') source=(http://downloads.sourceforge.net/luabind/luabind-${pkgver}.tar.gz) md5sums=('cf7f0e9dc4c578d670d5b851e624c4d6') build() { cd ${srcdir}/luabind-${pkgver}/ || return 1 # patch for c++ sed -e 's/{//g' -e 's/}//g' -e 's/extern "C"//g' < luabind/lua_include.hpp > luabind/lua_include.hpp.patched mv luabind/lua_include.hpp.patched luabind/lua_include.hpp # build luabind bjam release --prefix=${pkgdir}/usr/ link=static,shared install || return 1 # copy license install -Dm644 ${srcdir}/luabind-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/luabind/LICENSE }