Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

[WXLUA] By SpepS

By: a guest on Nov 3rd, 2010  |  syntax: None  |  size: 1.14 KB  |  views: 166  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data