Advertisement
losinggeneration

Fixed wxlua PKGBUILD

Feb 22nd, 2013
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer : speps <speps at aur dot archlinux dot org>
  2. # Contributor: Harley Laue <losinggeneration@gmail.com>
  3. # Contributor: Eric Forgeot < http://ifiction.free.fr >
  4.  
  5. pkgname=wxlua
  6. pkgver=2.8.12.2
  7. pkgrel=2
  8. pkgdesc="A set of bindings to the wxWidgets library for the Lua programming language."
  9. arch=('i686' 'x86_64')
  10. url="http://wxlua.sourceforge.net"
  11. license=('custom:wxWindows')
  12. depends=('lua51' 'desktop-file-utils' 'wxgtk')
  13. makedepends=('cmake')
  14. install="$pkgname.install"
  15. source=("https://launchpad.net/~zerobranestudio/+archive/zerobranestudio/+files/wxlua_$pkgver.orig.tar.gz"
  16.         "http://www.wxwidgets.org/about/licence3.txt")
  17. md5sums=('6570b61a1ed62cce90d8c773cf09dce5'
  18.          '8b3f4d426b97ea335b053353f9f220b2')
  19.  
  20. build() {
  21.   cd "$srcdir/$pkgname-$pkgver"
  22.  
  23.   cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_INSTALL_PREFIX=/usr \
  24.         -DwxLua_LUA_INCLUDE_DIR=/usr/include/lua5.1 \
  25.         -DwxLua_LUA_LIBRARY=/usr/lib/liblua5.1.so \
  26.         .
  27.  
  28.   make
  29. }
  30.  
  31. package() {
  32.   cd "$srcdir/$pkgname-$pkgver"
  33.   make DESTDIR="$pkgdir/" install
  34.  
  35.   # Install custom license file
  36.   install -Dm 644 "$srcdir/licence3.txt" \
  37.     "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  38.  
  39.   # Move the lua module to the correct directory
  40.   mkdir -p "$pkgdir/usr/lib/lua/5.1/"
  41.   cd "$pkgdir/usr/lib"
  42.   local libwxlua="libwx.so"
  43.   mv "$libwxlua" "lua/5.1/${libwxlua:3}"
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement