updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / luabind-c++ / PKGBUILD
blob24749c0dd2976864465cdfd35e206970aa11e021
1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
3 pkgname=luabind-c++
4 pkgver=0.9
5 pkgrel=1
6 pkgdesc="A library that helps you create bindings between C++ and Lua, compiled as C++ instead of C"
7 arch=('i686' 'x86_64')
8 url="http://www.rasterbar.com/products/luabind.html"
9 license=('MIT')
10 makedepends=('unzip' 'boost' 'boost-build')
11 conflicts=('luabind')
12 provides=('luabind')
13 depends=('lua-c++>=5.1')
14 source=(http://downloads.sourceforge.net/luabind/luabind-${pkgver}.tar.gz)
15 md5sums=('cf7f0e9dc4c578d670d5b851e624c4d6')
17 build() {
18   cd ${srcdir}/luabind-${pkgver}/ || return 1
20   # patch for c++
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
24   # build luabind
25   bjam release --prefix=${pkgdir}/usr/ link=static,shared install || return 1
27   # copy license
28   install -Dm644 ${srcdir}/luabind-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/luabind/LICENSE