1 # Maintainer : SpepS <dreamspepser at yahoo it>
2 # Contributor: Eric Forgeot < http://ifiction.free.fr >
7 pkgdesc="A set of bindings to the wxWidgets library for the Lua programming language."
9 url="http://wxlua.sourceforge.net"
10 license=('custom:wxWindows')
11 depends=('lua' 'desktop-file-utils' 'wxgtk')
12 install="$pkgname.install"
13 source=("http://downloads.sourceforge.net/$pkgname/wxLua-$pkgver-src.tar.gz"
15 md5sums=('7e0702c1f148a89c2ff6c1eed6a8e2fd'
16 'b3a16e8657621fb7271d8e0de71af88c')
22 # Let configure find system lua
23 sed -i "s_\(lua\)5.1_\1_g;s_\(include\)/lua_\1_" \
25 build/autoconf/configure.ac \
29 # Prevent installing lua headers
30 sed -i "1782d" modules/Makefile.in
32 # let wxbind sources be installed
33 # in a more suitable path
34 sed -i "s|src/wxbind|include/wxbind|g" \
35 modules/{Makefile.in,build/bakefiles/modules.bkl}
38 patch -p2 -i ../gcc4.6.patch
42 --with-lua-prefix=/usr/lib/lua/5.1/ \
52 make DESTDIR="$pkgdir/" install
54 # Install custom license file
55 mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
56 install -Dm 644 docs/licence.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"