summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 11 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 67f3a09c77f..4bb85d69791 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,8 +6,8 @@
pkgname=wxlua
pkgver=3.0.0.9
-pkgrel=1
-pkgdesc="Lua bindings for wxWidgets (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')
@@ -19,30 +19,30 @@ source=("$pkgname-$pkgver.tar.gz::https://github.com/pkulchenko/$pkgname/archive
sha256sums=('28c54297824d6691273a6470f0330a5c6dd6c977e30fb533aaf3350d995ec994')
build() {
- cd "$pkgname-$pkgver/wxLua/build"
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
+ 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/lua" \
+ -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
+ make -C build
}
package() {
cd "$pkgname-$pkgver/wxLua"
- pushd "build"
- make DESTDIR="$pkgdir/" install
+ make -C build DESTDIR="$pkgdir/" install
rm -f "$pkgdir"/usr/bin/lua{,c}
- popd
install -d "$pkgdir/usr/lib/lua/5.4"
- mv "$pkgdir"/usr/lib/{lib,lua/5.4/}wx.so
+ mv "$pkgdir/usr/lib/"{lib,lua/5.4/}wx.so
- install -Dm 644 docs/licence.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ 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/"