1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 04:35:13 +03:00
aports/testing/fcitx5-lua/APKBUILD
2023-02-08 04:12:29 +01:00

42 lines
1 KiB
Text

# Maintainer: psykose <alice@ayaya.dev>
pkgname=fcitx5-lua
pkgver=5.0.10
pkgrel=0
pkgdesc="Lua support for fcitx5"
url="https://github.com/fcitx/fcitx5-lua"
# armhf: extra-cmake-modules
arch="all !armhf"
license="LGPL-2.1-or-later"
makedepends="
cmake
extra-cmake-modules
gettext-dev
fcitx5-dev
lua5.3-dev
samurai
"
subpackages="$pkgname-lang $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/fcitx/fcitx5-lua/archive/refs/tags/$pkgver.tar.gz"
build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_DLOPEN=OFF \
-DLUA_LIBRARIES=/usr/lib/liblua-5.3.so.0 \
-DLUA_LIBRARY=/usr/lib/liblua-5.3.so.0 \
-DENABLE_TEST="$(want_check && echo ON || echo OFF)"
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
b015e6a5f8cf34e6df9080cfa8cf3cb2d856f53b1750a930fafcf190b556ac82a7b1941411688deb9400878d9d49d5cc3cf7c1c66e108c97ad391c038503fd29 fcitx5-lua-5.0.10.tar.gz
"