Advertisement
losinggeneration

Fixed wxlua PKGBUILD

Feb 22nd, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.67 KB | None | 0 0
  1. # Maintainer : speps <speps at aur dot archlinux dot org>
  2. # Contributor: Eric Forgeot < http://ifiction.free.fr >
  3.  
  4. pkgname=wxlua
  5. pkgver=2.8.12.2
  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=('lua51' 'desktop-file-utils' 'wxgtk')
  12. makedepends=('cmake')
  13. install="$pkgname.install"
  14. source=("https://launchpad.net/~zerobranestudio/+archive/zerobranestudio/+files/wxlua_$pkgver.orig.tar.gz"
  15.         "http://www.wxwidgets.org/about/licence3.txt")
  16. #source=("http://downloads.sourceforge.net/$pkgname/$pkgname/$pkgver/wxLua-$pkgver-src.tar.gz")
  17. md5sums=('6570b61a1ed62cce90d8c773cf09dce5'
  18.          '8b3f4d426b97ea335b053353f9f220b2')
  19.  
  20. build() {
  21.   cd "$srcdir/$pkgname-$pkgver"
  22.  
  23.   # Let configure find system lua
  24.   sed -i "s_\(lua\)5.1_\1_g;s_\(include\)/lua_\1_" \
  25.     configure \
  26.     build/autoconf/configure.ac \
  27.     apps/Makefile.in \
  28.     modules/Makefile.in
  29.  
  30.   # Prevent installing lua headers
  31.   sed -i "/include\/lauxlib\.h/d" modules/Makefile.in
  32.  
  33.   # let wxbind sources be installed
  34.   # in a more suitable path
  35.   sed -i "s|src/wxbind|include/wxbind|g" \
  36.       modules/{Makefile.in,build/bakefiles/modules.bkl}
  37.  
  38.   cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
  39.         -DBUILD_INSTALL_PREFIX=/usr \
  40.         -DwxLua_LUA_INCLUDE_DIR=/usr/include/lua5.1 \
  41.         -DwxLua_LUA_LIBRARY=/usr/lib/liblua5.1.so \
  42.         .
  43.  
  44.   make
  45. }
  46.  
  47. package() {
  48.   cd "$srcdir/$pkgname-$pkgver"
  49.   make DESTDIR="$pkgdir/" install
  50.  
  51.   # Install custom license file
  52.   install -Dm 644 "$srcdir/licence3.txt" \
  53.     "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement