updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / wxlua / PKGBUILD
blob82503f65383d61d650a97273296cfc8b6ae188ff
1 # Maintainer : SpepS <dreamspepser at yahoo it>
2 # Contributor: Eric Forgeot < http://ifiction.free.fr >
4 pkgname=wxlua
5 pkgver=2.8.10.0
6 pkgrel=2
7 pkgdesc="A set of bindings to the wxWidgets library for the Lua programming language."
8 arch=('i686' 'x86_64')
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"
14         "gcc4.6.patch")
15 md5sums=('7e0702c1f148a89c2ff6c1eed6a8e2fd'
16          'b3a16e8657621fb7271d8e0de71af88c')
18 build() {
20   cd "$srcdir/wxLua"
22   # Let configure find system lua
23   sed -i "s_\(lua\)5.1_\1_g;s_\(include\)/lua_\1_" \
24         configure \
25         build/autoconf/configure.ac \
26         apps/Makefile.in \
27         modules/Makefile.in
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}
37   # gcc 4.6 patch
38   patch -p2 -i ../gcc4.6.patch
40   ./configure \
41         --prefix=/usr \
42         --with-lua-prefix=/usr/lib/lua/5.1/ \
43         --enable-systemlua
45   make
48 package() {
50   cd "$srcdir/wxLua"
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"