# Maintainer : speps # Contributor: Harley Laue # Contributor: Eric Forgeot < http://ifiction.free.fr > pkgname=wxlua pkgver=2.8.12.2 pkgrel=2 pkgdesc="A set of bindings to the wxWidgets library for the Lua programming language." arch=('i686' 'x86_64') url="http://wxlua.sourceforge.net" license=('custom:wxWindows') depends=('lua51' 'desktop-file-utils' 'wxgtk') makedepends=('cmake') install="$pkgname.install" source=("https://launchpad.net/~zerobranestudio/+archive/zerobranestudio/+files/wxlua_$pkgver.orig.tar.gz" "http://www.wxwidgets.org/about/licence3.txt") md5sums=('6570b61a1ed62cce90d8c773cf09dce5' '8b3f4d426b97ea335b053353f9f220b2') build() { cd "$srcdir/$pkgname-$pkgver" cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_INSTALL_PREFIX=/usr \ -DwxLua_LUA_INCLUDE_DIR=/usr/include/lua5.1 \ -DwxLua_LUA_LIBRARY=/usr/lib/liblua5.1.so \ . make } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir/" install # Install custom license file install -Dm 644 "$srcdir/licence3.txt" \ "$pkgdir/usr/share/licenses/$pkgname/LICENSE" # Move the lua module to the correct directory mkdir -p "$pkgdir/usr/lib/lua/5.1/" cd "$pkgdir/usr/lib" local libwxlua="libwx.so" mv "$libwxlua" "lua/5.1/${libwxlua:3}" }