1. # Maintainer: Eric Forgeot < http://ifiction.free.fr >
  2. # Contributor: SpepS <dreamspepser at yahoo it>
  3.  
  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' 'shared-mime-info' 'wxgtk')
  12. install="$pkgname.install"
  13. source=("http://downloads.sourceforge.net/$pkgname/wxLua-$pkgver-src.tar.gz")
  14. md5sums=('7e0702c1f148a89c2ff6c1eed6a8e2fd')
  15.  
  16. build() {
  17.  
  18. cd "$srcdir/wxLua"
  19.  
  20. # Let configure find system lua
  21. sed -i "s_\(lua\)5.1_\1_g;s_\(include\)/lua_\1_" \
  22. configure \
  23. build/autoconf/configure.ac \
  24. apps/Makefile.in \
  25. modules/Makefile.in
  26.  
  27. # Prevent installing lua headers
  28. sed -i "1782d" modules/Makefile.in
  29.  
  30. ./configure \
  31. --prefix=/usr \
  32. --with-lua-prefix=/usr/lib/lua/5.1/ \
  33. --enable-systemlua
  34.  
  35. make
  36. }
  37.  
  38. package() {
  39.  
  40. cd "$srcdir/wxLua"
  41.  
  42. make DESTDIR="$pkgdir/" install
  43.  
  44. # Install custom license file
  45. mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
  46. install -Dm 644 docs/licence.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  47. }