diff options
author | Caleb Maclennan | 2020-02-11 15:00:17 +0300 |
---|---|---|
committer | Caleb Maclennan | 2020-02-11 15:00:17 +0300 |
commit | 2e44e40da76016738638fc31e1143e46360109e4 (patch) | |
tree | c92ba1e8b1954e8d9d0450eed86324a703008a5f /PKGBUILD | |
parent | 9409b65f9469f6612e19beaf5c4c0c3909a39fe9 (diff) | |
download | aur-2e44e40da76016738638fc31e1143e46360109e4.tar.gz |
Really build on system Lua
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -6,20 +6,25 @@ pkgname=wxlua pkgver=3.0.0.8 -pkgrel=1 -pkgdesc="Lua bindings fore the wxWidgets library (Lua 5.3 compatible fork)" +pkgrel=2 +pkgdesc="Lua bindings for wxWidgets (Lua 5.3 compatible fork)" arch=('i686' 'x86_64') url="https://github.com/pkulchenko/${pkgname}" license=('custom:wxWindows') depends=('desktop-file-utils' 'wxgtk2' 'lua') optdepends=('webkit2gtk') makedepends=('cmake') +checkdepends=('cppcheck') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pkulchenko/${pkgname}/archive/v${pkgver}.tar.gz") sha256sums=('85d5182eec6e7cbb8428b9c144ef7fbe364f4fed6411aafcead648893e5b6fa0') build() { cd "${pkgname}-${pkgver}/wxLua/build" cmake .. -DCMAKE_INSTALL_PREFIX=/usr \ + -DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE \ + -DwxLua_LUA_LIBRARY_BUILD_SHARED=TRUE \ + -DwxLua_LUA_LIBRARY="/usr/lib/liblua.so" \ + -DwxLua_LUA_INCLUDE_DIR="/usr/include/" \ -DCMAKE_BUILD_TYPE=Release \ -DwxWidgets_COMPONENTS="stc;gl;html;aui;adv;core;net;base" \ -DwxLuaBind_COMPONENTS="stc;gl;html;aui;adv;core;net;base" \ @@ -30,7 +35,7 @@ build() { package() { cd "${pkgname}-${pkgver}/wxLua/build" make DESTDIR="$pkgdir/" install - rm "$pkgdir"/usr/bin/lua{,c} + rm -f "$pkgdir"/usr/bin/lua{,c} install -d "$pkgdir/usr/lib/lua/5.3" mv "$pkgdir/usr/lib/libwx.so" "$pkgdir/usr/lib/lua/5.3/wx.so" |