diff options
author | Caleb Maclennan | 2024-04-02 11:22:13 +0300 |
---|---|---|
committer | Caleb Maclennan | 2024-04-02 11:22:13 +0300 |
commit | 0c806378b07f6235ac0bb82222d76054db1912b3 (patch) | |
tree | 235436c323dc51479ba66e7b11c520ccdcbb381a | |
parent | e94e44f475ed723685deb6a25a42fcf11262fe32 (diff) | |
download | aur-wxlua.tar.gz |
upgpkg: wxlua 3.2.0.2-1
upstream release
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 69 |
2 files changed, 42 insertions, 40 deletions
@@ -1,19 +1,18 @@ pkgbase = wxlua pkgdesc = Lua bindings for wxWidgets (Lua 5.3+ compatible fork) - pkgver = 3.0.0.9 - pkgrel = 2 + pkgver = 3.2.0.2 + pkgrel = 1 url = https://github.com/pkulchenko/wxlua arch = i686 arch = x86_64 - license = custom:wxWindows + license = wxWindows checkdepends = cppcheck makedepends = cmake depends = desktop-file-utils - depends = wxgtk2 depends = lua + depends = wxwidgets-gtk3 optdepends = webkit2gtk - source = wxlua-3.0.0.9.tar.gz::https://github.com/pkulchenko/wxlua/archive/v3.0.0.9.tar.gz - sha256sums = 28c54297824d6691273a6470f0330a5c6dd6c977e30fb533aaf3350d995ec994 + source = https://github.com/pkulchenko/wxlua/archive/v3.2.0.2/wxlua-3.2.0.2.tar.gz + sha256sums = 62abe571803a9748e19e86e39cb0e254fd90a5925dc5f0e35669e693cbdb129e pkgname = wxlua - @@ -5,46 +5,49 @@ # Contributor: favardin pkgname=wxlua -pkgver=3.0.0.9 -pkgrel=2 -pkgdesc="Lua bindings for wxWidgets (Lua 5.3+ compatible fork)" -arch=('i686' 'x86_64') +pkgver=3.2.0.2 +pkgrel=1 +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=('28c54297824d6691273a6470f0330a5c6dd6c977e30fb533aaf3350d995ec994') +license=(wxWindows) +depends=(desktop-file-utils + lua + wxwidgets-gtk3) +optdepends=(webkit2gtk) +makedepends=(cmake) +checkdepends=(cppcheck) +_archive="$pkgname-$pkgver" +source=("$url/archive/v$pkgver/$_archive.tar.gz") +sha256sums=('62abe571803a9748e19e86e39cb0e254fd90a5925dc5f0e35669e693cbdb129e') build() { - cd "$pkgname-$pkgver/wxLua" - cmake -S . -B build \ - -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" \ - -DBUILD_SHARED_LIBS=TRUE - make -C build + cd "$_archive/wxLua" + cmake -S . -B build \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D wxLua_LUA_LIBRARY_USE_BUILTIN=False \ + -D wxLua_LUA_LIBRARY_BUILD_SHARED=True \ + -D wxLua_LUA_LIBRARY='/usr/lib/liblua.so' \ + -D wxLua_LUA_INCLUDE_DIR='/usr/include' \ + -D wxWidgets_COMPONENTS='stc;gl;html;aui;adv;core;net;base' \ + -D wxLuaBind_COMPONENTS='stc;gl;html;aui;adv;core;net;base' \ + -D BUILD_SHARED_LIBS=True + make -C build } package() { - cd "$pkgname-$pkgver/wxLua" - make -C build DESTDIR="$pkgdir/" install - rm -f "$pkgdir"/usr/bin/lua{,c} + cd "$_archive/wxLua" + make -C build DESTDIR="$pkgdir/" install + rm -f "$pkgdir"/usr/bin/lua{,c} - install -d "$pkgdir/usr/lib/lua/5.4" - mv "$pkgdir/usr/lib/"{lib,lua/5.4/}wx.so + install -d "$pkgdir/usr/lib/lua/5.4" + mv "$pkgdir/usr/lib/"{lib,lua/5.4/}wx.so - install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" docs/licence.txt - install -Dm644 -t "$pkgdir/usr/share/icons/" art/wxlualogo.xpm + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" docs/licence.txt + install -Dm644 -t "$pkgdir/usr/share/icons/" art/wxlualogo.xpm - pushd distrib/autopackage - install -Dm644 "$pkgname.desktop" -t "$pkgdir/usr/share/applications/" - install -Dm644 "$pkgname.xml" -t "$pkgdir/usr/share/mime/packages/" + pushd distrib/autopackage + install -Dm644 "$pkgname.desktop" -t "$pkgdir/usr/share/applications/" + install -Dm644 "$pkgname.xml" -t "$pkgdir/usr/share/mime/packages/" } |