mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 22:14:28 +02:00
42 lines
1,019 B
Text
42 lines
1,019 B
Text
# Contributor: Lindsay Zhou <i@lin.moe>
|
|
# Maintainer: Lindsay Zhou <i@lin.moe>
|
|
pkgname=fcitx5-lua
|
|
pkgver=5.0.14
|
|
pkgrel=0
|
|
pkgdesc="Lua support for fcitx5"
|
|
url="https://github.com/fcitx/fcitx5-lua"
|
|
arch="all"
|
|
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
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
767b67fe17dcc1691f7b4e47af2cfd95e6f7afe9ef6797b14b69d2e799643f7f3679ca72865e6d08682ce0bc4d1d0ac78be9302ae52d6b9e920f6a34fa37ac44 fcitx5-lua-5.0.14.tar.gz
|
|
"
|